21 #ifndef PAGESPEED_KERNEL_THREAD_THREAD_SYNCHRONIZER_H__
22 #define PAGESPEED_KERNEL_THREAD_THREAD_SYNCHRONIZER_H__
31 namespace net_instaweb {
72 void Wait(
const char* key) {
84 DoTimedWait(key, timeout_ms);
107 typedef std::map<GoogleString, SyncPoint*> SyncMap;
110 void DoWait(
const char* key);
111 void DoTimedWait(
const char* key, int64 timeout_ms);
112 void DoSignal(
const char* key);
113 bool MatchesPrefix(
const char* key)
const;
120 StringVector prefixes_;
Definition: thread_synchronizer.h:55
void Signal(const char *key)
Definition: thread_synchronizer.h:92
void AllowSloppyTermination(const char *key)
Definition: scoped_ptr.h:30
std::string GoogleString
PAGESPEED_KERNEL_BASE_STRING_H_.
Definition: string.h:24
void EnableForPrefix(StringPiece prefix)
Definition: thread_synchronizer.h:66
GoogleString * StringVectorAdd(StringVector *v)
Appends new empty string to a StringVector and returns a pointer to it.
Definition: string_util.h:696
Definition: thread_system.h:40
void TimedWait(const char *key, int64 timeout_ms)
Definition: thread_synchronizer.h:82
void Wait(const char *key)
Waits for a thread to signal the specified key.
Definition: thread_synchronizer.h:72