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:
hujun5
2024-10-21 17:29:19 +08:00
committed by Alan C. Assis
parent 7f84a64109
commit 2c0e5e872b
5 changed files with 8 additions and 61 deletions
+1
View File
@@ -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);