Changeset 57926 in vbox for trunk/include/iprt/condvar.h
- Timestamp:
- Sep 28, 2015 2:05:58 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/condvar.h
r57004 r57926 54 54 * condition variable. 55 55 */ 56 RTDECL(int) RTCon vVarCreate(PRTCONDVAR phCondVar);56 RTDECL(int) RTCondVarCreate(PRTCONDVAR phCondVar); 57 57 58 58 /** … … 72 72 * @param ... Format string arguments. 73 73 */ 74 RTDECL(int) RTCon vVarCreateEx(PRTCONDVAR phCondVar, uint32_t fFlags, RTLOCKVALCLASS hClass,74 RTDECL(int) RTCondVarCreateEx(PRTCONDVAR phCondVar, uint32_t fFlags, RTLOCKVALCLASS hClass, 75 75 const char *pszNameFmt, ...) RT_IPRT_FORMAT_ATTR(4, 5); 76 76 77 /** @name RTCon vVarCreateEx flags77 /** @name RTCondVarCreateEx flags 78 78 * @{ */ 79 79 /** Disables lock validation. */ … … 88 88 * is quietly ignored (VINF_SUCCESS). 89 89 */ 90 RTDECL(int) RTCon vVarDestroy(RTCONDVAR hCondVar);90 RTDECL(int) RTCondVarDestroy(RTCONDVAR hCondVar); 91 91 92 92 /** … … 100 100 * 101 101 * @returns iprt status code. 102 * @param hCon vVar The condition variable to signal.103 */ 104 RTDECL(int) RTCon vVarSignal(RTCONDVAR hCondVar);102 * @param hCondVar The condition variable to signal. 103 */ 104 RTDECL(int) RTCondVarSignal(RTCONDVAR hCondVar); 105 105 106 106 /** … … 114 114 * 115 115 * @returns iprt status code. 116 * @param hCon vVar The condition variable to broadcast.117 */ 118 RTDECL(int) RTCon vVarBroadcast(RTCONDVAR hCondVar);119 120 /** 121 * Wait for the condition variable to be signaled, resume on interruption. 122 * 123 * This function will resume if the wait is interrupted by an async system event 124 * (like a unix signal) or similar. 125 * 126 * @returns iprt status code. 127 * Will not return VERR_INTERRUPTED. 128 * @param hCon vVar The condition variable to wait on.116 * @param hCondVar The condition variable to broadcast. 117 */ 118 RTDECL(int) RTCondVarBroadcast(RTCONDVAR hCondVar); 119 120 /** 121 * Wait for the condition variable to be signaled, resume on interruption. 122 * 123 * This function will resume if the wait is interrupted by an async system event 124 * (like a unix signal) or similar. 125 * 126 * @returns iprt status code. 127 * Will not return VERR_INTERRUPTED. 128 * @param hCondVar The condition variable to wait on. 129 129 * @param hMtx The mutex to leave during the wait and which 130 130 * will be re-enter before returning. … … 132 132 * RT_INDEFINITE_WAIT to wait forever. 133 133 */ 134 RTDECL(int) RTCon vVarMutexWait(RTCONDVAR hCondVar, RTSEMMUTEX hMtx, RTMSINTERVAL cMillies);135 136 /** 137 * Wait for the condition variable to be signaled, return on interruption. 138 * 139 * This function will not resume the wait if interrupted. 140 * 141 * @returns iprt status code. 142 * @param hCon vVar The condition variable to wait on.134 RTDECL(int) RTCondVarMutexWait(RTCONDVAR hCondVar, RTSEMMUTEX hMtx, RTMSINTERVAL cMillies); 135 136 /** 137 * Wait for the condition variable to be signaled, return on interruption. 138 * 139 * This function will not resume the wait if interrupted. 140 * 141 * @returns iprt status code. 142 * @param hCondVar The condition variable to wait on. 143 143 * @param hMtx The mutex to leave during the wait and which 144 144 * will be re-enter before returning. … … 146 146 * RT_INDEFINITE_WAIT to wait forever. 147 147 */ 148 RTDECL(int) RTCon vVarMutexWaitNoResume(RTCONDVAR hCondVar, RTSEMMUTEX hMtx, RTMSINTERVAL cMillies);149 150 /** 151 * Wait for the condition variable to be signaled, resume on interruption. 152 * 153 * This function will resume if the wait is interrupted by an async system event 154 * (like a unix signal) or similar. 155 * 156 * @returns iprt status code. 157 * Will not return VERR_INTERRUPTED. 158 * @param hCon vVar The condition variable to wait on.148 RTDECL(int) RTCondVarMutexWaitNoResume(RTCONDVAR hCondVar, RTSEMMUTEX hMtx, RTMSINTERVAL cMillies); 149 150 /** 151 * Wait for the condition variable to be signaled, resume on interruption. 152 * 153 * This function will resume if the wait is interrupted by an async system event 154 * (like a unix signal) or similar. 155 * 156 * @returns iprt status code. 157 * Will not return VERR_INTERRUPTED. 158 * @param hCondVar The condition variable to wait on. 159 159 * @param hRWSem The read/write semaphore to write-leave during 160 160 * the wait and which will be re-enter in write … … 163 163 * RT_INDEFINITE_WAIT to wait forever. 164 164 */ 165 RTDECL(int) RTCon vVarRWWriteWait(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies);166 167 /** 168 * Wait for the condition variable to be signaled, return on interruption. 169 * 170 * This function will not resume the wait if interrupted. 171 * 172 * @returns iprt status code. 173 * @param hCon vVar The condition variable to wait on.165 RTDECL(int) RTCondVarRWWriteWait(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies); 166 167 /** 168 * Wait for the condition variable to be signaled, return on interruption. 169 * 170 * This function will not resume the wait if interrupted. 171 * 172 * @returns iprt status code. 173 * @param hCondVar The condition variable to wait on. 174 174 * @param hRWSem The read/write semaphore to write-leave during 175 175 * the wait and which will be re-enter in write … … 178 178 * RT_INDEFINITE_WAIT to wait forever. 179 179 */ 180 RTDECL(int) RTCon vVarRWWriteWaitNoResume(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies);181 182 /** 183 * Wait for the condition variable to be signaled, resume on interruption. 184 * 185 * This function will resume if the wait is interrupted by an async system event 186 * (like a unix signal) or similar. 187 * 188 * @returns iprt status code. 189 * Will not return VERR_INTERRUPTED. 190 * @param hCon vVar The condition variable to wait on.180 RTDECL(int) RTCondVarRWWriteWaitNoResume(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies); 181 182 /** 183 * Wait for the condition variable to be signaled, resume on interruption. 184 * 185 * This function will resume if the wait is interrupted by an async system event 186 * (like a unix signal) or similar. 187 * 188 * @returns iprt status code. 189 * Will not return VERR_INTERRUPTED. 190 * @param hCondVar The condition variable to wait on. 191 191 * @param hRWSem The read/write semaphore to read-leave during 192 192 * the wait and which will be re-enter in read mode … … 195 195 * RT_INDEFINITE_WAIT to wait forever. 196 196 */ 197 RTDECL(int) RTCon vVarRWReadWait(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies);198 199 /** 200 * Wait for the condition variable to be signaled, return on interruption. 201 * 202 * This function will not resume the wait if interrupted. 203 * 204 * @returns iprt status code. 205 * @param hCon vVar The condition variable to wait on.197 RTDECL(int) RTCondVarRWReadWait(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies); 198 199 /** 200 * Wait for the condition variable to be signaled, return on interruption. 201 * 202 * This function will not resume the wait if interrupted. 203 * 204 * @returns iprt status code. 205 * @param hCondVar The condition variable to wait on. 206 206 * @param hRWSem The read/write semaphore to read-leave during 207 207 * the wait and which will be re-enter in read mode … … 210 210 * RT_INDEFINITE_WAIT to wait forever. 211 211 */ 212 RTDECL(int) RTCon vVarRWReadWaitNoResume(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies);213 214 /** 215 * Wait for the condition variable to be signaled, resume on interruption. 216 * 217 * This function will resume if the wait is interrupted by an async system event 218 * (like a unix signal) or similar. 219 * 220 * @returns iprt status code. 221 * Will not return VERR_INTERRUPTED. 222 * @param hCon vVar The condition variable to wait on.212 RTDECL(int) RTCondVarRWReadWaitNoResume(RTCONDVAR hCondVar, RTSEMRW hRWSem, RTMSINTERVAL cMillies); 213 214 /** 215 * Wait for the condition variable to be signaled, resume on interruption. 216 * 217 * This function will resume if the wait is interrupted by an async system event 218 * (like a unix signal) or similar. 219 * 220 * @returns iprt status code. 221 * Will not return VERR_INTERRUPTED. 222 * @param hCondVar The condition variable to wait on. 223 223 * @param pCritSect The critical section to leave during the wait 224 224 * and which will be re-enter before returning. … … 226 226 * RT_INDEFINITE_WAIT to wait forever. 227 227 */ 228 RTDECL(int) RTCon vVarCritSectWait(RTCONDVAR hCondVar, PRTCRITSECT pCritSect, RTMSINTERVAL cMillies);229 230 /** 231 * Wait for the condition variable to be signaled, return on interruption. 232 * 233 * This function will not resume the wait if interrupted. 234 * 235 * @returns iprt status code. 236 * @param hCon vVar The condition variable to wait on.228 RTDECL(int) RTCondVarCritSectWait(RTCONDVAR hCondVar, PRTCRITSECT pCritSect, RTMSINTERVAL cMillies); 229 230 /** 231 * Wait for the condition variable to be signaled, return on interruption. 232 * 233 * This function will not resume the wait if interrupted. 234 * 235 * @returns iprt status code. 236 * @param hCondVar The condition variable to wait on. 237 237 * @param pCritSect The critical section to leave during the wait 238 238 * and which will be re-enter before returning. … … 240 240 * RT_INDEFINITE_WAIT to wait forever. 241 241 */ 242 RTDECL(int) RTCon vVarCritSectWaitNoResume(RTCONDVAR hCondVar, PRTCRITSECT pCritSect, RTMSINTERVAL cMillies);242 RTDECL(int) RTCondVarCritSectWaitNoResume(RTCONDVAR hCondVar, PRTCRITSECT pCritSect, RTMSINTERVAL cMillies); 243 243 244 244 /** … … 246 246 * 247 247 * This is only used for validating usage and deadlock detection. When used 248 * after calls to RTCon vVarAddSignaller, the specified thread will be the only248 * after calls to RTCondVarAddSignaller, the specified thread will be the only 249 249 * signalling thread. 250 250 * 251 * @param hCon vVar The condition variable.251 * @param hCondVar The condition variable. 252 252 * @param hThread The thread that will signal it. Pass 253 253 * NIL_RTTHREAD to indicate that there is no 254 254 * special signalling thread. 255 255 */ 256 RTDECL(void) RTCon vVarSetSignaller(RTCONDVAR hCondVar, RTTHREAD hThread);256 RTDECL(void) RTCondVarSetSignaller(RTCONDVAR hCondVar, RTTHREAD hThread); 257 257 258 258 /** … … 261 261 * First call RTCondVarSetSignaller then add further threads with this. 262 262 * 263 * @param hCon vVar The condition variable.263 * @param hCondVar The condition variable. 264 264 * @param hThread The thread that will signal it. NIL_RTTHREAD is 265 265 * not accepted. 266 266 */ 267 RTDECL(void) RTCon vVarAddSignaller(RTCONDVAR hCondVar, RTTHREAD hThread);267 RTDECL(void) RTCondVarAddSignaller(RTCONDVAR hCondVar, RTTHREAD hThread); 268 268 269 269 /** … … 272 272 * Reverts work done by RTCondVarAddSignaller and RTCondVarSetSignaller. 273 273 * 274 * @param hCon vVar The condition variable.274 * @param hCondVar The condition variable. 275 275 * @param hThread A previously added thread. 276 276 */ 277 RTDECL(void) RTCon vVarRemoveSignaller(RTCONDVAR hCondVar, RTTHREAD hThread);277 RTDECL(void) RTCondVarRemoveSignaller(RTCONDVAR hCondVar, RTTHREAD hThread); 278 278 279 279 /** @} */
Note:
See TracChangeset
for help on using the changeset viewer.