#include "thread_system.h"
Classes | |
class | Condvar |
class | CondvarCapableMutex |
class | RWLock |
class | ScopedReader |
class | Thread |
Base class for client thread code. More... | |
class | ThreadImpl |
Public Types | |
enum | ThreadFlags { kDetached = 0, kJoinable = 1 } |
Public Member Functions | |
virtual CondvarCapableMutex * | NewMutex ()=0 |
virtual RWLock * | NewRWLock ()=0 |
virtual Timer * | NewTimer ()=0 |
Creates and returns a real-time timer. Caller is responsible for deleting. | |
Static Public Member Functions | |
static ThreadSystem * | CreateThreadSystem () |
Creates an appropriate ThreadSystem for the platform. | |
Friends | |
class | Thread |
class | MockThreadSystem |
class | CheckingThreadSystem |
Subclasses of this represent threading support under given environment, and help create various primitives for it.
virtual CondvarCapableMutex* net_instaweb::ThreadSystem::NewMutex | ( | ) | [pure virtual] |
Makes a new mutex for this system.
See also CondvarCapableMutex::NewCondvar.
Implemented in net_instaweb::CheckingThreadSystem, and net_instaweb::PthreadThreadSystem.
virtual RWLock* net_instaweb::ThreadSystem::NewRWLock | ( | ) | [pure virtual] |
This lock will provide following guarantee -
Implemented in net_instaweb::CheckingThreadSystem, and net_instaweb::PthreadThreadSystem.