mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 23:37:42 +00:00
threads: Document spurious wakeups on virCondWait
This commit is contained in:
parent
9707c2a8bc
commit
6c811ed486
@ -88,8 +88,14 @@ void virMutexUnlock(virMutexPtr m);
|
||||
int virCondInit(virCondPtr c) ATTRIBUTE_RETURN_CHECK;
|
||||
int virCondDestroy(virCondPtr c) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
/* virCondWait, virCondWaitUntil:
|
||||
* These functions can return without the associated predicate
|
||||
* changing value. Therefore in nearly all cases they
|
||||
* should be enclosed in a while loop that checks the predicate.
|
||||
*/
|
||||
int virCondWait(virCondPtr c, virMutexPtr m) ATTRIBUTE_RETURN_CHECK;
|
||||
int virCondWaitUntil(virCondPtr c, virMutexPtr m, unsigned long long whenms) ATTRIBUTE_RETURN_CHECK;
|
||||
|
||||
void virCondSignal(virCondPtr c);
|
||||
void virCondBroadcast(virCondPtr c);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user