/[rtmk]/rtmk/thread.c
ViewVC logotype

Diff of /rtmk/thread.c

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

revision 1.19 by jrydberg, Wed Feb 20 20:04:42 2002 UTC revision 1.20 by jrydberg, Thu Feb 21 01:41:45 2002 UTC
# Line 24  Foundation, Inc., 59 Temple Place - Suit Line 24  Foundation, Inc., 59 Temple Place - Suit
24  #include "libkern.h"  #include "libkern.h"
25  #include "queue.h"  #include "queue.h"
26  #include "ipc-tqueue.h"  #include "ipc-tqueue.h"
27    #include "host.h"
28    
29  bool thread_system_running = false;  bool thread_system_running = false;
30    
# Line 191  thread_create (struct task *task, struct Line 192  thread_create (struct task *task, struct
192    SPLON (spl);    SPLON (spl);
193    
194    trace_count (n_threads++);    trace_count (n_threads++);
195      host_info_basic.threads++;
196    
197    *threadp = thread;    *threadp = thread;
198    return KERN_SUCCESS;    return KERN_SUCCESS;
# Line 239  thread_deallocate (struct thread *thread Line 241  thread_deallocate (struct thread *thread
241    kmem_cache_free (thread_cache, thread);    kmem_cache_free (thread_cache, thread);
242    
243    trace_count (n_threads--);    trace_count (n_threads--);
244      host_info_basic.threads--;
245  }  }
246    
247  /* Terminate THREAD.  */  /* Terminate THREAD.  */
# Line 395  syscall_thread_reply_port (void) Line 398  syscall_thread_reply_port (void)
398    
399    /* Insert right into tasks IPC object.  */    /* Insert right into tasks IPC object.  */
400    
401      ipc_object_lock (THREAD_CURRENT()->task->ipc_object);
402    kr = ipc_object_copyout (THREAD_CURRENT()->task->ipc_object, reply_port,    kr = ipc_object_copyout (THREAD_CURRENT()->task->ipc_object, reply_port,
403                             RTMK_MSG_TYPE_MOVE_RECEIVE, &reply_name);                             RTMK_MSG_TYPE_MOVE_RECEIVE, &reply_name);
404      ipc_object_unlock (THREAD_CURRENT()->task->ipc_object);
405    assert (kr == KERN_SUCCESS);    assert (kr == KERN_SUCCESS);
406    return reply_name;    return reply_name;
407  }  }

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

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