source: rtems/cpukit/posix/inline/rtems/posix/pthread.inl @ 180295ad

4.104.114.84.95
Last change on this file since 180295ad was 180295ad, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/21/05 at 07:29:05

New header guards.

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/**
2 * @file rtems/posix/pthread.inl
3 */
4
5/*  rtems/posix/pthread.inl
6 *
7 *  This include file contains the static inline implementation of the private
8 *  inlined routines for POSIX threads.
9 *
10 *  COPYRIGHT (c) 1989-1999.
11 *  On-Line Applications Research Corporation (OAR).
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.rtems.com/license/LICENSE.
16 *
17 *  $Id$
18 */
19 
20#ifndef _RTEMS_POSIX_PTHREAD_INL
21#define _RTEMS_POSIX_PTHREAD_INL
22 
23/*PAGE
24 *
25 *  _POSIX_Threads_Allocate
26 */
27 
28RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void )
29{
30  return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information );
31}
32 
33/*PAGE
34 *
35 *  _POSIX_Threads_Free
36 */
37 
38RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (
39  Thread_Control *the_pthread
40)
41{
42  _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object );
43}
44 
45/*PAGE
46 *
47 *  _POSIX_Threads_Get
48 */
49 
50RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Get (
51  pthread_t          id,
52  Objects_Locations *location
53)
54{
55  return (Thread_Control *)
56    _Objects_Get( &_POSIX_Threads_Information, (Objects_Id)id, location );
57}
58 
59/*PAGE
60 *
61 *  _POSIX_Threads_Is_null
62 */
63 
64RTEMS_INLINE_ROUTINE boolean _POSIX_Threads_Is_null (
65  Thread_Control *the_pthread
66)
67{
68  return !the_pthread;
69}
70
71#endif
72/*  end of include file */
73
Note: See TracBrowser for help on using the repository browser.