summaryrefslogtreecommitdiff
path: root/components/pthreads/pthread.c
diff options
context:
space:
mode:
author[email protected] <[email protected]>2010-11-24 23:59:27 +0000
committer[email protected] <[email protected]>2010-11-24 23:59:27 +0000
commit7191e2220fe1dc6e7ae4ff0af657bfe25b43379f (patch)
treed3f066721f6e5b6b9672a82da4c361a961bbcc93 /components/pthreads/pthread.c
parentf5d2b36adb96c7fc2b8984ef7c9c34ec23edb497 (diff)
add pthread magic assert.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1112 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/pthreads/pthread.c')
-rw-r--r--components/pthreads/pthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/pthreads/pthread.c b/components/pthreads/pthread.c
index fc312dfd11..c4743c0a91 100644
--- a/components/pthreads/pthread.c
+++ b/components/pthreads/pthread.c
@@ -65,6 +65,7 @@ int pthread_create (pthread_t *tid, const pthread_attr_t *attr,
ptd->canceled = 0;
ptd->cancelstate = PTHREAD_CANCEL_DISABLE;
ptd->canceltype = PTHREAD_CANCEL_DEFERRED;
+ ptd->magic = PTHREAD_MAGIC;
if (attr != RT_NULL) ptd->attr = *attr;
else