Page Speed Optimization Libraries  1.5.27.2
Classes | Namespaces
net/instaweb/util/public/null_thread_system.h File Reference
#include "net/instaweb/util/public/thread_system.h"
#include "pagespeed/kernel/base/basictypes.h"

Go to the source code of this file.

Classes

class  net_instaweb::NullThreadSystem

Namespaces

namespace  net_instaweb
 

for StringPiece



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 currenlty make threads (even co-routines), but check-fails if you attempt to spawn a new thread.

Also, currently, there are no fake condvars, and the methods that create condvars will check-fail.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines