Skip to content

Commit f295b6e

Browse files
author
rpj
committed
sync with pthreads4w SourceForge Git repository
1 parent a4a3450 commit f295b6e

Some content is hidden

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

45 files changed

+1044
-1803
lines changed

ANNOUNCE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ by Ross Johnson.
4242
The implementation of read/write locks was contributed by
4343
Aurelio Medina and improved by Alexander Terekhov.
4444

45-
Many others have contributed significant time and effort to solve crutial
45+
Many others have contributed significant time and effort to solve crucial
4646
problems in order to make the library workable, robust and reliable.
4747

4848
Thanks to Xavier Leroy for granting permission to use and modify his

ChangeLog

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,43 @@
1+
2012-12-19 Jason Baker <jason underscore baker at symantec dot com>
2+
3+
* pthread_win32_attach_detach_np.c (pthread_win32_process_attach_np):
4+
Fix function calls involving TCHAR.
5+
6+
2012-10-29 Ross Johnson <ross dot johnson at homemail dot com dot au>
7+
8+
* sem_destroy.c: Remove NULL argument checks. These are only useful
9+
to guard against some uninitialised arguments, not an invalid sem_t.
10+
* sem_wait.c: Likewise.
11+
* sem_post.c: Likewise.
12+
* sem_post_multiple.c: Likewise.
13+
* sem_timedwait.c: Likewise.
14+
* sem_trywait.c: Likewise.
15+
* ptw32_semwait.c: Likewise.
16+
17+
2012-10-28 Ross Johnson <ross dot johnson at homemail dot com dot au>
18+
19+
* implement.h: sem_t_ replace internal state mutex with MCS lock.
20+
* sem_init.c: Rewrite to use MCS lock rather than mutex.
21+
* sem_destroy.c: Likewise.
22+
* sem_wait.c: Likewise.
23+
* sem_post.c: Likewise.
24+
* sem_post_multiple.c: Likewise.
25+
* sem_timedwait.c: Likewise.
26+
* sem_trywait.c: Likewise.
27+
* ptw32_semwait.c: Likewise.
28+
29+
2012-10-26 sicaf-- at hanmail dot net
30+
31+
* error.c: For WinCE use a more specific cast.
32+
* implement.h: For WinCE don't include process.h.
33+
* pthread_win32_attach_detach_np.c: For WinCE don't restrict QUserEx.dll
34+
search to system path.
35+
36+
2012-10-24 Stephane Clairet <Stephane dot Clairet at 4d dot com>
37+
38+
* pthread_key_delete.c: Bug fix - move keylock release to after the
39+
while loop. (This bug first was introduced at release 2.9.1)
40+
141
2012-10-16 Ross Johnson <ross dot johnson at homemail dot com dot au>
242

343
* Makefile: Remove SDK environment setting; now needs to be done

GNUmakefile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ CC = $(CROSS)gcc
6868
CXX = $(CROSS)g++
6969
RANLIB = $(CROSS)ranlib
7070
RC = $(CROSS)windres
71+
OD_PRIVATE = $(CROSS)objdump -p
7172

7273
# Build for non-native architecture. E.g. "-m64" "-m32" etc.
7374
# Not fully tested fully, needs gcc built with "--enable-multilib"
@@ -77,12 +78,13 @@ RC = $(CROSS)windres
7778
# a value.
7879
#ARCH =
7980

80-
ifeq ($(ARCH),-m32)
81-
RES_TARGET = --target pe-i386
82-
endif
83-
ifeq ($(ARCH),-m64)
84-
RES_TARGET = --target pe-x86-64
85-
endif
81+
#
82+
# Look for targets that $(RC) (usually windres) supports then look at any object
83+
# file just built to see which target the compiler used and set the $(RC) target
84+
# to match it.
85+
#
86+
SUPPORTED_TARGETS = $(filter pe-% pei-% elf32-% elf64-% srec symbolsrec verilog tekhex binary ihex,$(shell $(RC) --help))
87+
RC_TARGET = --target $(firstword $(filter $(SUPPORTED_TARGETS),$(shell $(OD_PRIVATE) *.$(OBJEXT))))
8688

8789
OPT = $(CLEANUP) -O3 # -finline-functions -findirect-inlining
8890
XOPT =
@@ -274,7 +276,7 @@ install:
274276
$(CC) -c $(CFLAGS) -DPTW32_BUILD_INLINED -Wa,-ahl $^ > $@
275277

276278
%.o: %.rc
277-
$(RC) $(RES_TARGET) $(RCFLAGS) $(CLEANUP) -o $@ -i $<
279+
$(RC) $(RC_TARGET) $(RCFLAGS) $(CLEANUP) -o $@ -i $<
278280

279281
.SUFFIXES: .dll .rc .c .o
280282

NEWS

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ removed. For example, targets to build and test all of the possible
4444
configurations of both dll and static libs.
4545

4646
The makefiles now know how to build both 32 and 64 bit versions if
47-
the toolchain (MSVS or Mingw) allow it.
47+
the toolchain allows it (MinGW only). See the README file "Building
48+
with ..." sections for details.
4849

4950
Bug Fixes
5051
---------
@@ -73,6 +74,18 @@ These failures do not arise with Mingw64 32 bit builds running on
7374
64 bit systems.
7475
- Daniel Richard G. and Ross Johnson
7576

77+
pthread_key_delete() bug introduced in release 2.9.x caused this
78+
routine to fail in a way that the test suite was not detecting. A
79+
new test has been added to confirm that this routine behaves
80+
correctly, particularly when keys with destructors are deleted
81+
before threads exit.
82+
- Stephane Clairet
83+
84+
pthread_win32_process_attach_np() fix potential failure/security around
85+
finding and loading of QUSEREX.DLL.
86+
- Jason Baker
87+
88+
7689
RELEASE 2.9.1
7790
-------------
7891
(2012-05-27)

attr.c

Lines changed: 0 additions & 53 deletions
This file was deleted.

barrier.c

Lines changed: 0 additions & 47 deletions
This file was deleted.

cancel.c

Lines changed: 0 additions & 44 deletions
This file was deleted.

condvar.c

Lines changed: 0 additions & 49 deletions
This file was deleted.

0 commit comments

Comments
 (0)