source: rtems/cpukit/posix/src/condget.c @ 631b3c8

5
Last change on this file since 631b3c8 was 631b3c8, checked in by Sebastian Huber <sebastian.huber@…>, on 05/23/16 at 09:40:18

score: Move thread queue MP callout to context

Drop the multiprocessing (MP) dependent callout parameter from the
thread queue extract, dequeue, flush and unblock methods. Merge this
parameter with the lock context into new structure Thread_queue_Context.
This helps to gets rid of the conditionally compiled method call
helpers.

  • Property mode set to 100644
File size: 704 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2007.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  The license and distribution terms for this file may be
6 *  found in the file LICENSE in this distribution or at
7 *  http://www.rtems.org/license/LICENSE.
8 */
9
10#if HAVE_CONFIG_H
11#include "config.h"
12#endif
13
14#include <rtems/posix/condimpl.h>
15#include <rtems/posix/posixapi.h>
16
17POSIX_Condition_variables_Control *_POSIX_Condition_variables_Get(
18  pthread_cond_t       *cond,
19  Thread_queue_Context *queue_context
20)
21{
22  _POSIX_Get_object_body(
23    POSIX_Condition_variables_Control,
24    cond,
25    queue_context,
26    &_POSIX_Condition_variables_Information,
27    PTHREAD_COND_INITIALIZER,
28    pthread_cond_init
29  );
30}
Note: See TracBrowser for help on using the repository browser.