|
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CefBaseRefCounted | +--CefWaitableEventin cef_waitable_event.h
WaitableEvent is a thread synchronization tool that allows one thread to wait for another thread to finish some work. This is equivalent to using a Lock+ConditionVariable to protect a simple boolean value. However, using WaitableEvent in conjunction with a Lock to wait for a more complex state change (e.g., for an item to be added to a queue) is not recommended. In that case consider using a ConditionVariable instead of a WaitableEvent. It is safe to create and/or signal a WaitableEvent from any thread. Blocking on a WaitableEvent by calling the *Wait() methods is not allowed on the browser process UI or IO threads.
Method Summary | |
static CefRefPtr< CefWaitableEvent > |
CreateWaitableEvent( bool automatic_reset, bool initially_signaled )
Create a new waitable event. |
virtual bool |
IsSignaled()= 0
Returns true if the event is in the signaled state, else false. |
virtual void |
Reset()= 0
Put the event in the un-signaled state. |
virtual void |
Signal()= 0
Put the event in the signaled state. |
virtual bool |
TimedWait( int64 max_ms )= 0
Wait up to |max_ms| milliseconds for the event to be signaled. |
virtual void |
Wait()= 0
Wait indefinitely for the event to be signaled. |
Methods inherited from class CefBaseRefCounted |
AddRef, Release, HasOneRef, HasAtLeastOneRef |
Method Detail |
public static CefRefPtr< CefWaitableEvent > CreateWaitableEvent( bool automatic_reset, bool initially_signaled );
public virtual bool IsSignaled()= 0;
public virtual void Reset()= 0;
public virtual void Signal()= 0;
public virtual bool TimedWait( int64 max_ms )= 0;
public virtual void Wait()= 0;
|
CEF3 C++ API Docs - Version 75.1.4+g4210896+chromium-75.0.3770.100 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |