Skip to content

Commit a4a3450

Browse files
author
rpj
committed
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

COPYING

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This file is Copyrighted
66

77
This file is covered under the following Copyright:
88

9-
Copyright (C) 2001,2006 Ross P. Johnson
9+
Copyright (C) 2001,2012 Ross P. Johnson
1010
All rights reserved.
1111

1212
Everyone is permitted to copy and distribute verbatim copies
@@ -32,7 +32,7 @@ Pthreads-win32 is covered by the GNU Lesser General Public License
3232
A copy of the GNU Lesser General Public License is distributed with
3333
pthreads-win32 under the filename:
3434

35-
COPYING.LIB
35+
COPYING.FSF
3636

3737
You should have received a copy of the version 2.1 GNU Lesser General
3838
Public License with pthreads-win32; if not, write to:
@@ -45,7 +45,8 @@ Pthreads-win32 is covered by the GNU Lesser General Public License
4545

4646
The contact addresses for pthreads-win32 is as follows:
4747

48-
Web: http://sources.redhat.com/pthreads-win32
48+
Homepage1: http://sourceware.org/pthreads-win32/
49+
Homepage2: http://sourceforge.net/projects/pthreads4w/
4950
Email: Ross Johnson
5051
Please use: [email protected]
5152

COPYING.LIB renamed to COPYING.FSF

File renamed without changes.

0 commit comments

Comments
 (0)