diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2007-02-20 22:39:56 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2007-02-20 22:39:56 +0000 |
commit | 560c075bdd4e219ade2299ccdcd032e314d626b8 (patch) | |
tree | f640e5eab1ce66cdeadd0ab3684ea326f56db8a5 /nuttx/sched/pthread_detach.c | |
parent | 93d21048f12d9196232562508f4a8c9002432613 (diff) |
Eliminating GCC dependencies
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@14 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/sched/pthread_detach.c')
-rw-r--r-- | nuttx/sched/pthread_detach.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/sched/pthread_detach.c b/nuttx/sched/pthread_detach.c index 967ed237f9..4306b28e44 100644 --- a/nuttx/sched/pthread_detach.c +++ b/nuttx/sched/pthread_detach.c @@ -90,15 +90,15 @@ int pthread_detach(pthread_t thread) join_t *pjoin; int ret; - dbg("%s: Thread=%d\n", __FUNCTION__, thread.pid); + dbg("Thread=%d\n", thread); /* Find the entry associated with this pthread. */ (void)pthread_takesemaphore(&g_join_semaphore); - pjoin = pthread_findjoininfo(thread.pid); + pjoin = pthread_findjoininfo((pid_t)thread); if (!pjoin) { - dbg("%s: Could not find thread entry\n", __FUNCTION__); + dbg("Could not find thread entry\n"); ret = EINVAL; } else @@ -109,7 +109,7 @@ int pthread_detach(pthread_t thread) { /* YES.. just remove the thread entry. */ - (void)pthread_removejoininfo(thread.pid); + (void)pthread_removejoininfo((pid_t)thread); sched_free(pjoin); pjoin = NULL; } @@ -129,6 +129,6 @@ int pthread_detach(pthread_t thread) } (void)pthread_givesemaphore(&g_join_semaphore); - dbg("%s: Returning %d\n", __FUNCTION__, ret); + dbg("Returning %d\n", ret); return ret; } |