4.104.114.84.95
Last change
on this file since 03598b1 was
03598b1,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/25/99 at 23:20:52
|
Split most of POSIX Threads Manager into multiple files.
|
-
Property mode set to
100644
|
File size:
991 bytes
|
Line | |
---|
1 | /* |
---|
2 | * 16.1.5.1 Thread Termination, p1003.1c/Draft 10, p. 150 |
---|
3 | * |
---|
4 | * NOTE: Key destructors are executed in the POSIX api delete extension. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989-1998. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * Copyright assigned to U.S. Government, 1994. |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.OARcorp.com/rtems/license.html. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | |
---|
18 | #include <pthread.h> |
---|
19 | #include <errno.h> |
---|
20 | |
---|
21 | #include <rtems/system.h> |
---|
22 | #include <rtems/score/thread.h> |
---|
23 | #include <rtems/posix/pthread.h> |
---|
24 | |
---|
25 | void pthread_exit( |
---|
26 | void *value_ptr |
---|
27 | ) |
---|
28 | { |
---|
29 | Objects_Information *the_information; |
---|
30 | |
---|
31 | the_information = _Objects_Get_information( _Thread_Executing->Object.id ); |
---|
32 | |
---|
33 | _Thread_Disable_dispatch(); |
---|
34 | |
---|
35 | _Thread_Executing->Wait.return_argument = (unsigned32 *)value_ptr; |
---|
36 | |
---|
37 | _Thread_Close( the_information, _Thread_Executing ); |
---|
38 | |
---|
39 | _POSIX_Threads_Free( _Thread_Executing ); |
---|
40 | |
---|
41 | _Thread_Enable_dispatch(); |
---|
42 | } |
---|
43 | |
---|
Note: See
TracBrowser
for help on using the repository browser.