Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a4a3450

Browse files
author
rpj
committedOct 17, 2012
Added new NP and CPU affinity functions; Changes to makefiles
1 parent f875cca commit a4a3450

File tree

324 files changed

+11596
-3426
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

324 files changed

+11596
-3426
lines changed
 

‎ANNOUNCE

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ These are now documented in the BUGS file.
7575
Level of standards conformance
7676
------------------------------
7777

78-
The following POSIX 1003.1 2001 options are defined and set to 200112L:
78+
The following POSIX options are defined and set to 200809L:
7979

8080
_POSIX_THREADS
8181
_POSIX_THREAD_SAFE_FUNCTIONS
@@ -86,16 +86,15 @@ The following POSIX 1003.1 2001 options are defined and set to 200112L:
8686
_POSIX_SPIN_LOCKS
8787
_POSIX_BARRIERS
8888

89-
90-
The following POSIX 1003.1 2001 options are defined and set to -1:
89+
The following POSIX options are defined and set to -1:
9190

9291
_POSIX_THREAD_ATTR_STACKADDR
9392
_POSIX_THREAD_PRIO_INHERIT
9493
_POSIX_THREAD_PRIO_PROTECT
9594
_POSIX_THREAD_PROCESS_SHARED
9695

9796

98-
The following POSIX 1003.1 2001 limits are defined and set:
97+
The following POSIX limits are defined and set:
9998

10099
_POSIX_THREAD_THREADS_MAX
101100
_POSIX_SEM_VALUE_MAX
@@ -254,6 +253,8 @@ The following functions are implemented:
254253
sched_get_priority_max
255254
sched_get_priority_min
256255
sched_rr_get_interval (returns an error ENOTSUP)
256+
sched_getaffinity
257+
sched_setaffinity
257258
sched_setscheduler (only supports SCHED_OTHER)
258259
sched_getscheduler (only supports SCHED_OTHER)
259260
sched_yield
@@ -269,10 +270,13 @@ The following functions are implemented:
269270
Non-portable routines (see the README.NONPORTABLE file for usage)
270271
---------------------------
271272
pthread_timedjoin_np
273+
pthread_tryjoin_np
272274
pthread_getw32threadhandle_np
273275
pthread_timechange_handler_np
274276
pthread_delay_np
275277
pthread_getunique_np
278+
pthread_getaffinity_np
279+
pthread_setaffinity_np
276280
pthread_mutexattr_getkind_np
277281
pthread_mutexattr_setkind_np (types: PTHREAD_MUTEX_FAST_NP,
278282
PTHREAD_MUTEX_ERRORCHECK_NP,
@@ -303,6 +307,19 @@ The following functions are implemented:
303307
PTHREAD_RWLOCK_INITIALIZER
304308
PTHREAD_SPINLOCK_INITIALIZER
305309

310+
---------------------------
311+
CPU Affinity Mask Support
312+
---------------------------
313+
CPU_ZERO
314+
CPU_EQUAL
315+
CPU_COUNT
316+
CPU_SET
317+
CPU_CLR
318+
CPU_ISSET
319+
CPU_AND
320+
CPU_OR
321+
CPU_XOR
322+
306323

307324
The library includes two non-API functions for creating cancellation
308325
points in applications and libraries:

‎Bmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OPTIM = /O2
2121
RC = brcc32
2222
RCFLAGS = -i.
2323

24-
CFLAGS = /q /I. /D_WIN32_WINNT=0x400 /DHAVE_PTW32_CONFIG_H=1 /4 /tWD /tWM \
24+
CFLAGS = /q /I. /DHAVE_CONFIG_H=1 /4 /tWD /tWM \
2525
/w-aus /w-asc /w-par
2626

2727
#C cleanup code

0 commit comments

Comments
 (0)
Please sign in to comment.