You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In thread.h the doc for aws_thread_clean_up currently reads:
/**
* Cleans up the thread handle. Either detach or join must be called
* before calling this function.
*/
But the function itself detaches the thread (if it is currently running). There is no function to detach a thread and calling aws_thread_join before this function makes it a no-op.
In condition_variable.h:
The docs for aws_condition_variable_wait, aws_condition_variable_wait_pred, aws_condition_variable_wait_for, and aws_condition_variable_wait_for_pred should note that the function must be called with the mutex locked by the calling thread otherwise the behavior is undefined.
Additionally, the docs for aws_condition_variable_wait and aws_condition_variable_wait_for should note that spurious wakeups can occur: i.e., the return of the function does not apply anything about the wakeup condition associated with the variable. To avoid this problem the user can use the _pred versions of these functions or re-test the condition explicitly.
The text was updated successfully, but these errors were encountered:
thread.h
the doc foraws_thread_clean_up
currently reads:But the function itself detaches the thread (if it is currently running). There is no function to detach a thread and calling
aws_thread_join
before this function makes it a no-op.In
condition_variable.h
:The docs for
aws_condition_variable_wait
,aws_condition_variable_wait_pred
,aws_condition_variable_wait_for
, andaws_condition_variable_wait_for_pred
should note that the function must be called with the mutex locked by the calling thread otherwise the behavior is undefined.Additionally, the docs for
aws_condition_variable_wait
andaws_condition_variable_wait_for
should note that spurious wakeups can occur: i.e., the return of the function does not apply anything about the wakeup condition associated with the variable. To avoid this problem the user can use the_pred
versions of these functions or re-test the condition explicitly.The text was updated successfully, but these errors were encountered: