|
Page Speed Optimization Libraries
1.13.35.1
|
#include "null_thread_system.h"
Public Member Functions | |
| virtual NullCondvarCapableMutex * | NewMutex () |
| virtual RWLock * | NewRWLock () |
| virtual Timer * | NewTimer () |
| virtual ThreadId * | GetThreadId () const |
| void | set_current_thread (int id) |
| Provide injection/observation of current thread IDs. | |
| int | current_thread () const |
Additional Inherited Members | |
Public Types inherited from net_instaweb::ThreadSystem | |
| enum | ThreadFlags { kDetached = 0, kJoinable = 1 } |
Mock thread system. This can create mutexes that do no locking, condvars that do no waiting, and can't create threads. Trying to create a thread will result in a fatal error.
|
virtual |
Returns an object holding the current thread ID. The resultant object must be freed by the caller.
Implements net_instaweb::ThreadSystem.
|
virtual |
Makes a new mutex for this system.
See also CondvarCapableMutex::NewCondvar.
Implements net_instaweb::ThreadSystem.
|
virtual |
This lock will provide following guarantee -
Implements net_instaweb::ThreadSystem.
|
virtual |
Creates and returns a real-time timer. Caller is responsible for deleting.
Implements net_instaweb::ThreadSystem.
1.8.6