Xenomai 3.3.2
Loading...
Searching...
No Matches
pthread.h
1/*
2 * Copyright (C) 2014 Philippe Gerum <rpm@xenomai.org>.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
17 */
18#pragma GCC system_header
19#include_next <pthread.h>
20
21#ifndef _XENOMAI_TRANK_POSIX_PTHREAD_H
22#define _XENOMAI_TRANK_POSIX_PTHREAD_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
52static inline int pthread_set_mode_np(int clrmask, int setmask,
53 int *mask_r)
54{
55 return pthread_setmode_np(clrmask, setmask, mask_r);
56}
57
77static inline int pthread_set_name_np(pthread_t thread,
78 const char *name)
79{
80 return pthread_setname_np(thread, name);
81}
82
83int pthread_make_periodic_np(pthread_t thread,
84 struct timespec *starttp,
85 struct timespec *periodtp);
86
87int pthread_wait_np(unsigned long *overruns_r);
88
89#ifdef __cplusplus
90}
91#endif
92
93#endif /* _XENOMAI_TRANK_POSIX_PTHREAD_H */
int pthread_setname_np(pthread_t thread, const char *name))
Set a thread name.
Definition thread.c:403
int pthread_setmode_np(int clrmask, int setmask, int *mask_r)
Set the mode of the current thread.
Definition thread.c:379
int pthread_make_periodic_np(pthread_t thread, struct timespec *starttp, struct timespec *periodtp)
Make a thread periodic (compatibility service).
Definition posix.c:66