source: rtems/cpukit/posix/src/pthreadattrdefault.c @ 58500540

5
Last change on this file since 58500540 was 58500540, checked in by Sebastian Huber <sebastian.huber@…>, on 10/12/17 at 05:18:28

posix: Fix const qualifier warning

Update #2514.
Update #3179.

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/**
2 * @file
3 *
4 * @brief Private Support Information for POSIX Threads
5 * @ingroup POSIX_PTHREADS Private Threads
6 */
7
8/*
9 *  COPYRIGHT (c) 1989-2014.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#if HAVE_CONFIG_H
18#include "config.h"
19#endif
20
21#include <rtems/posix/pthreadattrimpl.h>
22
23/*
24 *  The default pthreads attributes structure.
25 *
26 *  NOTE: Be careful .. if the default attribute set changes,
27 *        _POSIX_Threads_Initialize_user_threads will need to be examined.
28 */
29const pthread_attr_t _POSIX_Threads_Default_attributes = {
30  .is_initialized  = true,                       /* is_initialized */
31  .stackaddr       = NULL,                       /* stackaddr */
32  .stacksize       = 0,                          /* stacksize -- will be adjusted to minimum */
33  .contentionscope = PTHREAD_SCOPE_PROCESS,      /* contentionscope */
34  .inheritsched    = PTHREAD_INHERIT_SCHED,      /* inheritsched */
35  .schedpolicy     = SCHED_FIFO,                 /* schedpolicy */
36  .schedparam      =
37  {                           /* schedparam */
38    2,                        /* sched_priority */
39    #if defined(_POSIX_SPORADIC_SERVER) || \
40        defined(_POSIX_THREAD_SPORADIC_SERVER)
41      0,                        /* sched_ss_low_priority */
42      { 0L, 0 },                /* sched_ss_repl_period */
43      { 0L, 0 },                /* sched_ss_init_budget */
44      0                         /* sched_ss_max_repl */
45    #endif
46  },
47
48  #if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE
49    .guardsize = 0,                            /* guardsize */
50  #endif
51  #if defined(_POSIX_THREAD_CPUTIME)
52    .cputime_clock_allowed = 1,                        /* cputime_clock_allowed */
53  #endif
54  .detachstate             = PTHREAD_CREATE_JOINABLE,    /* detachstate */
55  .affinitysetsize         =
56    sizeof( _POSIX_Threads_Default_attributes.affinitysetpreallocated ),
57  .affinityset             = RTEMS_DECONST(
58    cpu_set_t *,
59    &_POSIX_Threads_Default_attributes.affinitysetpreallocated
60  ),
61  .affinitysetpreallocated = { { -1L } }
62};
Note: See TracBrowser for help on using the repository browser.