Changeset 25720 in vbox for trunk/include
- Timestamp:
- Jan 11, 2010 1:57:09 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56460
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/semaphore.h
r25717 r25720 59 59 60 60 /** 61 * Create a event semaphore.61 * Create an event semaphore. 62 62 * 63 63 * @returns iprt status code. … … 68 68 69 69 /** 70 * Create s a read/writesemaphore.70 * Create an event semaphore. 71 71 * 72 72 * @returns iprt status code. … … 91 91 /** @} */ 92 92 93 94 93 /** 95 94 * Destroy an event semaphore. … … 183 182 184 183 /** 185 * Create a event multi semaphore. 186 * 187 * @returns iprt status code. 188 * @param pEventMultiSem Where to store the event multi semaphore handle. 189 */ 190 RTDECL(int) RTSemEventMultiCreate(PRTSEMEVENTMULTI pEventMultiSem); 184 * Creates a multiple release event semaphore. 185 * 186 * @returns iprt status code. 187 * @param phEventMultiSem Where to store the handle to the newly created 188 * multiple release event semaphore. 189 */ 190 RTDECL(int) RTSemEventMultiCreate(PRTSEMEVENTMULTI phEventMultiSem); 191 192 /** 193 * Creates a multiple release event semaphore. 194 * 195 * @returns iprt status code. 196 * @param phEventMultiSem Where to store the handle to the newly created 197 * multiple release event semaphore. 198 * @param fFlags Flags, any combination of the 199 * RTSEMEVENTMULTI_FLAGS_XXX \#defines. 200 * @param hClass The class (no reference consumed). Since we 201 * don't do order checks on event semaphores, the 202 * use of the class is limited to controlling the 203 * timeout threshold for deadlock detection. 204 * @param pszNameFmt Name format string for the lock validator, 205 * optional (NULL). Max length is 32 bytes. 206 * @param ... Format string arguments. 207 */ 208 RTDECL(int) RTSemEventMultiCreateEx(PRTSEMEVENTMULTI phEventMultiSem, uint32_t fFlags, RTLOCKVALCLASS hClass, 209 const char *pszNameFmt, ...); 210 211 /** @name RTSemMutexCreateEx flags 212 * @{ */ 213 /** Disables lock validation. */ 214 #define RTSEMEVENTMULTI_FLAGS_NO_LOCK_VAL UINT32_C(0x00000001) 215 /** @} */ 191 216 192 217 /** … … 194 219 * 195 220 * @returns iprt status code. 196 * @param EventMultiSem The event multi sempahore to destroy. 197 */ 198 RTDECL(int) RTSemEventMultiDestroy(RTSEMEVENTMULTI EventMultiSem); 221 * @param hEventMultiSem The multiple release event sempahore. NIL is 222 * quietly ignored (VINF_SUCCESS). 223 */ 224 RTDECL(int) RTSemEventMultiDestroy(RTSEMEVENTMULTI hEventMultiSem); 199 225 200 226 /** … … 202 228 * 203 229 * @returns iprt status code. 204 * @param EventMultiSem The event multi semaphore to signal.205 */ 206 RTDECL(int) RTSemEventMultiSignal(RTSEMEVENTMULTI EventMultiSem);230 * @param hEventMultiSem The multiple release event sempahore. 231 */ 232 RTDECL(int) RTSemEventMultiSignal(RTSEMEVENTMULTI hEventMultiSem); 207 233 208 234 /** … … 210 236 * 211 237 * @returns iprt status code. 212 * @param EventMultiSem The event multi semaphore to reset.213 */ 214 RTDECL(int) RTSemEventMultiReset(RTSEMEVENTMULTI EventMultiSem);238 * @param hEventMultiSem The multiple release event sempahore. 239 */ 240 RTDECL(int) RTSemEventMultiReset(RTSEMEVENTMULTI hEventMultiSem); 215 241 216 242 /** … … 222 248 * @returns iprt status code. 223 249 * Will not return VERR_INTERRUPTED. 224 * @param EventMultiSem The event multi semaphore to wait on.225 * @param cMillies Number of milliseconds to wait.226 */ 227 RTDECL(int) RTSemEventMultiWait(RTSEMEVENTMULTI EventMultiSem, unsigned cMillies);250 * @param hEventMultiSem The multiple release event sempahore. 251 * @param cMillies Number of milliseconds to wait. 252 */ 253 RTDECL(int) RTSemEventMultiWait(RTSEMEVENTMULTI hEventMultiSem, unsigned cMillies); 228 254 229 255 … … 234 260 * 235 261 * @returns iprt status code. 236 * @param EventMultiSem The event multi semaphore to wait on.237 * @param cMillies Number of milliseconds to wait.238 */ 239 RTDECL(int) RTSemEventMultiWaitNoResume(RTSEMEVENTMULTI EventMultiSem, unsigned cMillies);262 * @param hEventMultiSem The multiple release event sempahore. 263 * @param cMillies Number of milliseconds to wait. 264 */ 265 RTDECL(int) RTSemEventMultiWaitNoResume(RTSEMEVENTMULTI hEventMultiSem, unsigned cMillies); 240 266 241 267 /**
Note:
See TracChangeset
for help on using the changeset viewer.