mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
pthread_cond remove csection
reason: We decouple semcount from business logic by using an independent counting variable, which allows us to remove critical sections in many cases. Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
@@ -74,6 +74,7 @@ int pthread_cond_init(FAR pthread_cond_t *cond,
|
||||
else
|
||||
{
|
||||
cond->clockid = attr ? attr->clockid : CLOCK_REALTIME;
|
||||
cond->lock_count = 0;
|
||||
}
|
||||
|
||||
sinfo("Returning %d\n", ret);
|
||||
|
||||
Reference in New Issue
Block a user