#include <EventNotify.h>
Public Member Functions | |
EventNotify () | |
void | signal (void) |
int | wait (void) |
int | timedwait (int timeout) |
void | lock (void) |
bool | trylock (void) |
void | unlock (void) |
~EventNotify () |
Definition at line 36 of file EventNotify.h.
EventNotify::EventNotify | ( | ) |
Definition at line 40 of file EventNotify.cc.
References FD_CLOEXEC, ink_cond_init(), ink_mutex_init(), and ink_release_assert.
EventNotify::~EventNotify | ( | ) |
Definition at line 180 of file EventNotify.cc.
References ink_cond_destroy(), and ink_mutex_destroy().
void EventNotify::lock | ( | void | ) |
Definition at line 151 of file EventNotify.cc.
References ink_mutex_acquire().
Referenced by Log::collate_thread_main(), Log::flush_thread_main(), Log::preproc_thread_main(), RecProcessInitMessage(), and recv_message_cb__process().
void EventNotify::signal | ( | void | ) |
Definition at line 71 of file EventNotify.cc.
References ATS_UNUSED_RETURN, and ink_cond_signal().
Referenced by LogFile::preproc_and_try_delete(), recv_message_cb__process(), PeriodicWakeup::wakeup(), and LogFile::write_ascii_logbuffer3().
int EventNotify::timedwait | ( | int | timeout | ) |
Definition at line 113 of file EventNotify.cc.
References HRTIME_SECONDS, ink_cond_timedwait(), ink_get_hrtime_internal(), and ink_hrtime_to_timespec().
bool EventNotify::trylock | ( | void | ) |
Definition at line 161 of file EventNotify.cc.
References ink_mutex_try_acquire().
void EventNotify::unlock | ( | void | ) |
Definition at line 171 of file EventNotify.cc.
References ink_mutex_release().
Referenced by Log::collate_thread_main(), Log::flush_thread_main(), Log::preproc_thread_main(), RecProcessInitMessage(), and recv_message_cb__process().
int EventNotify::wait | ( | void | ) |
Definition at line 87 of file EventNotify.cc.
References ink_cond_wait().
Referenced by Log::collate_thread_main(), Log::flush_thread_main(), Log::preproc_thread_main(), and RecProcessInitMessage().