|
Jetson Inference
DNN Vision Library
|
Go to the documentation of this file.
23 #ifndef __MULTITHREAD_EVENT_H_
24 #define __MULTITHREAD_EVENT_H_
40 inline Event(
bool auto_reset=
true );
73 inline bool Wait(
const timespec& timeout );
79 inline bool Wait( uint64_t timeout );
85 inline bool WaitNs( uint64_t timeout );
91 inline bool WaitUs( uint64_t timeout );
96 inline pthread_cond_t*
GetID();
bool Wait()
Wait until this event is raised.
Event object for signalling other threads.
Definition: Event.h:33
bool Query()
Query the status of this event.
bool WaitNs(uint64_t timeout)
Wait for a specified number of nanoseconds until this event is raised or timeout occurs.
A lightweight mutual exclusion lock.
Definition: Mutex.h:35
pthread_cond_t mID
Definition: Event.h:100
void Wake()
Raise the event.
bool mAutoReset
Definition: Event.h:104
void Reset()
Reset the event status to un-raised.
Event(bool auto_reset=true)
Event constructor.
Mutex mQueryMutex
Definition: Event.h:102
bool WaitUs(uint64_t timeout)
Wait for a specified number of microseconds until this event is raised or timeout occurs.
pthread_cond_t * GetID()
Get the Event object.
bool mQuery
Definition: Event.h:103