Definition at line 117 of file semaphore.cc.
◆ PlatformSemaphore()
fml::PlatformSemaphore::PlatformSemaphore |
( |
uint32_t |
count | ) |
|
|
inlineexplicit |
◆ ~PlatformSemaphore()
fml::PlatformSemaphore::~PlatformSemaphore |
( |
| ) |
|
|
inline |
Definition at line 122 of file semaphore.cc.
122 {
123 if (valid_) {
124 int result = ::sem_destroy(&sem_);
126
127
129 }
130 }
#define FML_DCHECK(condition)
◆ IsValid()
bool fml::PlatformSemaphore::IsValid |
( |
| ) |
const |
|
inline |
◆ Signal()
void fml::PlatformSemaphore::Signal |
( |
| ) |
|
|
inline |
Definition at line 150 of file semaphore.cc.
150 {
151 if (!valid_) {
152 return;
153 }
154
155 ::sem_post(&sem_);
156
157 return;
158 }
◆ TryWait()
bool fml::PlatformSemaphore::TryWait |
( |
| ) |
|
|
inline |
Definition at line 142 of file semaphore.cc.
142 {
143 if (!valid_) {
144 return false;
145 }
146
148 }
#define FML_HANDLE_EINTR(x)
◆ Wait()
bool fml::PlatformSemaphore::Wait |
( |
| ) |
|
|
inline |
Definition at line 134 of file semaphore.cc.
134 {
135 if (!valid_) {
136 return false;
137 }
138
140 }
The documentation for this class was generated from the following file: