/[hurd]/hurd/libpthread/sysdeps/mach/hurd/pt-docancel.c
ViewVC logotype

Diff of /hurd/libpthread/sysdeps/mach/hurd/pt-docancel.c

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

revision 1.1 by neal, Thu Oct 10 23:05:05 2002 UTC revision 1.2 by neal, Mon Nov 18 22:20:58 2002 UTC
# Line 30  call_exit (void) Line 30  call_exit (void)
30  int  int
31  __pthread_do_cancel (struct __pthread *p)  __pthread_do_cancel (struct __pthread *p)
32  {  {
33      mach_port_t ktid;
34      int me;
35    
36    assert (p->cancel_pending = 1);    assert (p->cancel_pending = 1);
37    assert (p->cancel_state == PTHREAD_CANCEL_ENABLE);    assert (p->cancel_state == PTHREAD_CANCEL_ENABLE);
38    
39    if (__mach_thread_self () == p->kernel_thread)    ktid = __mach_thread_self ();
40      me = p->kernel_thread == ktid;
41      __mach_port_deallocate (__mach_task_self (), ktid);
42    
43      if (me)
44      call_exit ();      call_exit ();
45    else    else
46      {      {

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26