/[svn]/liblscp/trunk/src/thread.c
ViewVC logotype

Diff of /liblscp/trunk/src/thread.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 177 by capela, Tue Jun 1 20:27:25 2004 UTC revision 178 by capela, Tue Jul 6 15:52:25 2004 UTC
# Line 159  lscp_status_t lscp_thread_cancel ( lscp_ Line 159  lscp_status_t lscp_thread_cancel ( lscp_
159    
160  lscp_status_t lscp_thread_destroy ( lscp_thread_t *pThread )  lscp_status_t lscp_thread_destroy ( lscp_thread_t *pThread )
161  {  {
162      lscp_status_t ret = lscp_thread_cancel(pThread);      lscp_status_t ret = lscp_thread_join(pThread);
   
     if (ret == LSCP_OK)  
         ret = lscp_thread_join(pThread);  
163    
164  //  fprintf(stderr, "lscp_thread_destroy: pThread=%p.\n", pThread);  //  fprintf(stderr, "lscp_thread_destroy: pThread=%p.\n", pThread);
165    
166      free(pThread);      if (ret == LSCP_OK)
167            free(pThread);
168    
169      return ret;      return ret;
170  }  }

Legend:
Removed from v.177  
changed lines
  Added in v.178

  ViewVC Help
Powered by ViewVC