Home | History | Annotate | Download | only in libtiutils

Lines Matching refs:Semaphore

19 #include "Semaphore.h"
27 @brief Constructor for the semaphore class
32 Semaphore::Semaphore()
34 ///Initialize the semaphore to NULL
39 @brief Destructor of the semaphore class
45 Semaphore::~Semaphore()
51 @brief: Releases semaphore
55 @return One of the android error codes based on semaphore de-initialization
58 status_t Semaphore::Release()
62 ///Destroy only if the semaphore has been created
72 ///Initialize the semaphore and return the status
78 @brief Create the semaphore with initial count value
82 @return NO_MEMORY If unable to allocate memory for the semaphore
84 @return One of the android error codes based on semaphore initialization
87 status_t Semaphore::Create(int count)
103 ///allocate memory for the semaphore
112 ///Initialize the semaphore and return the status
121 @return BAD_VALUE if the semaphore is not initialized
123 @return One of the android error codes based on semaphore wait operation
125 status_t Semaphore::Wait()
127 ///semaphore should have been created first
144 @return BAD_VALUE if the semaphore is not initialized
146 @return One of the android error codes based on semaphore signal operation
149 status_t Semaphore::Signal()
151 ///semaphore should have been created first
157 ///Post to the semaphore
163 @brief Current semaphore count
166 @return Current count value of the semaphore
168 int Semaphore::Count()
172 ///semaphore should have been created first
178 ///get the value of the semaphore
188 @return BAD_VALUE if the semaphore is not initialized
190 @return One of the android error codes based on semaphore wait operation
193 status_t Semaphore::WaitTimeout(int timeoutMicroSecs)
200 ///semaphore should have been created first