-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
rpj
committed
Jan 5, 2007
1 parent
a7ed60c
commit eeef426
Showing
9 changed files
with
120 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
2006-12-20 Ross Johnson <[email protected]> | ||
2007-01-04 Ross Johnson <ross.johnson at homemail dot com dot au> | ||
|
||
* ptw32_InterlockedCompareExchange.c: Conditionally skip for | ||
Win64 as not required. | ||
* pthread_win32_attach_detach_np.c (pthread_win32_process_attach_np): | ||
Test for InterlockedCompareExchange is not required for Win64. | ||
* context.h: New file. Included by pthread_cancel.h and any tests | ||
that need it (e.g. context1.c). | ||
* pthread_cancel.c: Architecture-dependent context macros moved | ||
to context.h. | ||
|
||
2007-01-04 Kip Streithorst <KSTREITH at ball dot com> | ||
|
||
* implement.h (PTW32_INTERLOCKED_COMPARE_EXCHANGE): Add Win64 | ||
support. | ||
|
||
2006-12-20 Ross Johnson <ross.johnson at homemail dot com dot au> | ||
|
||
* sem_destroy.c: Fix the race involving invalidation of the sema; | ||
fix incorrect return of EBUSY resulting from the mutex trylock | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
/* | ||
* context.h | ||
* | ||
* Description: | ||
* POSIX thread macros related to thread cancellation. | ||
* | ||
* -------------------------------------------------------------------------- | ||
* | ||
* Pthreads-win32 - POSIX Threads Library for Win32 | ||
* Copyright(C) 1998 John E. Bossom | ||
* Copyright(C) 1999,2005 Pthreads-win32 contributors | ||
* | ||
* Contact Email: [email protected] | ||
* | ||
* The current list of contributors is contained | ||
* in the file CONTRIBUTORS included with the source | ||
* code distribution. The list can also be seen at the | ||
* following World Wide Web location: | ||
* http://sources.redhat.com/pthreads-win32/contributors.html | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU Lesser General Public | ||
* License as published by the Free Software Foundation; either | ||
* version 2 of the License, or (at your option) any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this library in the file COPYING.LIB; | ||
* if not, write to the Free Software Foundation, Inc., | ||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | ||
*/ | ||
|
||
#ifndef PTW32_CONTEXT_H | ||
#define PTW32_CONTEXT_H | ||
|
||
#undef PTW32_PROGCTR | ||
|
||
#if defined(_M_IX86) || defined(_X86_) | ||
#define PTW32_PROGCTR(Context) ((Context).Eip) | ||
#endif | ||
|
||
#if defined (_M_IA64) || defined(_IA64) | ||
#define PTW32_PROGCTR(Context) ((Context).StIIP) | ||
#endif | ||
|
||
#if defined(_MIPS_) | ||
#define PTW32_PROGCTR(Context) ((Context).Fir) | ||
#endif | ||
|
||
#if defined(_ALPHA_) | ||
#define PTW32_PROGCTR(Context) ((Context).Fir) | ||
#endif | ||
|
||
#if defined(_PPC_) | ||
#define PTW32_PROGCTR(Context) ((Context).Iar) | ||
#endif | ||
|
||
#if defined(_AMD64_) || defined(__amd64__) | ||
#define PTW32_PROGCTR(Context) ((Context).Rip) | ||
#endif | ||
|
||
#if !defined(PTW32_PROGCTR) | ||
#error Module contains CPU-specific code; modify and recompile. | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
2007-01-04 Ross Johnson <Ross dot Johnson at homemail dot com dot au> | ||
|
||
* context1.c: Include context.h from library sources and remove | ||
x86 dependence in main(). | ||
|
||
2005-06-12 Ross Johnson <[email protected]> | ||
|
||
* stress1.c (millisecondsFromNow): Remove limit 0 <= millisecs < 1000; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters