mirror of
https://github.com/apache/nuttx.git
synced 2026-09-28 15:54:57 +08:00
Add SYSCALLS for pthread_setaffinity() and pthread_getaffinity()
This commit is contained in:
+2
-6
@@ -1,7 +1,7 @@
|
||||
/********************************************************************************
|
||||
* include/pthread.h
|
||||
*
|
||||
* Copyright (C) 2007-2009, 2011-2012, 2015 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2007-2009, 2011-2012, 2015-2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -259,14 +259,10 @@ typedef struct pthread_barrier_s pthread_barrier_t;
|
||||
typedef bool pthread_once_t;
|
||||
#define __PTHREAD_ONCE_T_DEFINED 1
|
||||
|
||||
/* Forware references */
|
||||
/* Forward references */
|
||||
|
||||
struct sched_param; /* Defined in sched.h */
|
||||
|
||||
/********************************************************************************
|
||||
* Public Data
|
||||
********************************************************************************/
|
||||
|
||||
/********************************************************************************
|
||||
* Public Function Prototypes
|
||||
********************************************************************************/
|
||||
|
||||
+15
-7
@@ -2,7 +2,7 @@
|
||||
* include/sys/syscall.h
|
||||
* This file contains the system call numbers.
|
||||
*
|
||||
* Copyright (C) 2011-2014 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2011-2016 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -377,13 +377,21 @@
|
||||
# define SYS_pthread_setspecific (__SYS_pthread+26)
|
||||
# define SYS_pthread_yield (__SYS_pthread+27)
|
||||
|
||||
# ifndef CONFIG_DISABLE_SIGNALS
|
||||
# define SYS_pthread_cond_timedwait (__SYS_pthread+28)
|
||||
# define SYS_pthread_kill (__SYS_pthread+29)
|
||||
# define SYS_pthread_sigmask (__SYS_pthread+30)
|
||||
# define __SYS_mqueue (__SYS_pthread+31)
|
||||
# ifndef CONFIG_SMP
|
||||
# define SYS_pthread_setaffinity_np (__SYS_pthread+28)
|
||||
# define SYS_pthread_getaffinity_np (__SYS_pthread+29)
|
||||
# define __SYS_pthread_signals (__SYS_pthread+30)
|
||||
# else
|
||||
# define __SYS_mqueue (__SYS_pthread+28)
|
||||
# define __SYS_pthread_signals (__SYS_pthread+28)
|
||||
# endif
|
||||
|
||||
# ifndef CONFIG_DISABLE_SIGNALS
|
||||
# define SYS_pthread_cond_timedwait (__SYS_pthread_signals+0)
|
||||
# define SYS_pthread_kill (__SYS_pthread_signals+1)
|
||||
# define SYS_pthread_sigmask (__SYS_pthread_signals+2)
|
||||
# define __SYS_mqueue (__SYS_pthread_signals+3)
|
||||
# else
|
||||
# define __SYS_mqueue __SYS_pthread_signals
|
||||
# endif
|
||||
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user