|
Page Speed Optimization Libraries
1.13.35.1
|
#include "thread_system.h"
Classes | |
| class | Condvar |
| class | CondvarCapableMutex |
| class | RWLock |
| class | ScopedReader |
| class | Thread |
| Base class for client thread code. More... | |
| class | ThreadId |
| 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 |
| virtual ThreadId * | GetThreadId () const =0 |
Friends | |
| class | Thread |
| class | MockThreadSystem |
| class | CheckingThreadSystem |
Subclasses of this represent threading support under given environment, and help create various primitives for it.
|
pure virtual |
Returns an object holding the current thread ID. The resultant object must be freed by the caller.
Implemented in net_instaweb::CheckingThreadSystem, net_instaweb::NullThreadSystem, and net_instaweb::PthreadThreadSystem.
|
pure virtual |
Makes a new mutex for this system.
See also CondvarCapableMutex::NewCondvar.
Implemented in net_instaweb::CheckingThreadSystem, net_instaweb::NullThreadSystem, and net_instaweb::PthreadThreadSystem.
|
pure virtual |
This lock will provide following guarantee -
Implemented in net_instaweb::CheckingThreadSystem, net_instaweb::NullThreadSystem, and net_instaweb::PthreadThreadSystem.
|
pure virtual |
Creates and returns a real-time timer. Caller is responsible for deleting.
Implemented in net_instaweb::CheckingThreadSystem, net_instaweb::NullThreadSystem, net_instaweb::PthreadThreadSystem, and net_instaweb::ApacheThreadSystem.
1.8.6