summaryrefslogtreecommitdiff
path: root/components/libc/pthreads/pthread_cond.c
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2018-08-03 14:28:45 +0800
committerBernard Xiong <[email protected]>2018-08-03 14:28:45 +0800
commitf68bb0ec90a6e15aeb6accaf18c5eff1a0dfc90c (patch)
tree519f307e9bb4d218bde87260a2fedb5bb43e8d5e /components/libc/pthreads/pthread_cond.c
parent6f012541b06533c5610011d7aefa3844dd3e5c43 (diff)
[pthreads] Fix the object check issue.
Diffstat (limited to 'components/libc/pthreads/pthread_cond.c')
-rw-r--r--components/libc/pthreads/pthread_cond.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/libc/pthreads/pthread_cond.c b/components/libc/pthreads/pthread_cond.c
index 9349e84050..1a4217310e 100644
--- a/components/libc/pthreads/pthread_cond.c
+++ b/components/libc/pthreads/pthread_cond.c
@@ -109,6 +109,7 @@ int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr)
/* detach the object from system object container */
rt_object_detach(&(cond->sem.parent.parent));
+ cond->sem.parent.parent.type = RT_Object_Class_Semaphore;
return 0;
}