Page Speed Optimization Libraries
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces
null_thread_system.h File Reference
#include "base/logging.h"
#include "pagespeed/kernel/base/basictypes.h"
#include "pagespeed/kernel/base/condvar.h"
#include "pagespeed/kernel/base/thread_system.h"
#include "pagespeed/kernel/base/string.h"
#include "pagespeed/kernel/base/string_util.h"

Go to the source code of this file.


class  net_instaweb::NullCondvar
class  net_instaweb::NullCondvar::TimedWaitCallback
class  net_instaweb::NullCondvarCapableMutex
class  net_instaweb::NullThreadSystem


 Unit-test framework for wget fetcher.

Detailed Description

Zero-dependency mock thread-system for use in tests that don't actually use threads, to help test classes that need some mutexing or other thread-safety hooks.

Note that this thread-system does not currently make threads (even co-routines), but check-fails if you attempt to spawn a new thread.