[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and to
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 371e013c41bd33968e856a27f1963343eb886dfc |
Date: |
Wed, 23 Dec 2009 15:34:05 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "DotGNU Portable.NET engine, compilers and tools (pnet)".
The branch, master has been updated
via 371e013c41bd33968e856a27f1963343eb886dfc (commit)
from 240c3be1a6099c71fe9566cedda45d7856497414 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/pnet.git/commit/?id=371e013c41bd33968e856a27f1963343eb886dfc
commit 371e013c41bd33968e856a27f1963343eb886dfc
Author: Klaus Treichel <address@hidden>
Date: Wed Dec 23 16:33:53 2009 +0100
Fix more whitespace formatting.
diff --git a/ChangeLog b/ChangeLog
index 7912579..a576d82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
* support/wakeup.c (_ILWakeupDestroy): likewise
+ * support/thr_defs.h: likewise
+
+ * support/thread.c: likewise
+
2009-12-22 Klaus Treichel <address@hidden>
* tests/Makefile.am: Fix make distcheck build.
diff --git a/support/thr_defs.h b/support/thr_defs.h
index 5ff5685..4c12c41 100755
--- a/support/thr_defs.h
+++ b/support/thr_defs.h
@@ -58,10 +58,10 @@ typedef int (*ILMonitorPredicate)(void *);
#define IL_THREAD_OK 0x00000000
#define IL_THREAD_ERR_ABANDONED 0x00000080
#define IL_THREAD_BUSY 0x00000102
-#define IL_THREAD_ERR_INTERRUPT 0x80131519
#define IL_THREAD_ERR_INVALID_TIMEOUT 0x80131502
#define IL_THREAD_ERR_SYNCLOCK 0x80131518
-#define IL_THREAD_ERR_ABORTED 0xFFFFFFFC
+#define IL_THREAD_ERR_INTERRUPT 0x80131519
+#define IL_THREAD_ERR_ABORTED 0x80131530
#define IL_THREAD_ERR_INVALID_RELEASECOUNT 0xFFFFFFFD
#define IL_THREAD_ERR_OUTOFMEMORY 0xFFFFFFFE
#define IL_THREAD_ERR_UNKNOWN 0xFFFFFFFF
@@ -98,7 +98,7 @@ typedef struct __tagILWaitMutex ILWaitMutex;
typedef struct _tagILWakeup
{
_ILCondMutex lock;
- _ILCondVar condition;
+ _ILCondVar condition;
ILUInt32 volatile count;
ILUInt32 volatile limit;
int volatile interrupted;
@@ -151,14 +151,14 @@ struct _tagILThread
_ILMutex lock;
_ILThreadHandle volatile handle;
_ILThreadIdentifier volatile identifier;
- ILUInt16 volatile state;
- unsigned char volatile resumeRequested;
- unsigned char volatile suspendRequested;
- unsigned int volatile numLocksHeld;
+ ILUInt16 volatile state;
+ unsigned char volatile resumeRequested;
+ unsigned char volatile suspendRequested;
+ unsigned int volatile numLocksHeld;
_ILSemaphore resumeAck;
_ILSemaphore suspendAck;
ILThreadStartFunc volatile startFunc;
- void * volatile startArg;
+ void * volatile startArg;
void * volatile userObject;
_ILWakeup wakeup;
_ILWakeupQueue joinQueue;
@@ -301,7 +301,7 @@ typedef struct
{
ILWaitMutex parent;
_ILWakeupQueue signalQueue;
- int waiters;
+ int waiters;
} ILWaitMonitor;
/*
diff --git a/support/thread.c b/support/thread.c
index 2ce9666..4f44859 100644
--- a/support/thread.c
+++ b/support/thread.c
@@ -337,7 +337,7 @@ void _ILThreadRun(ILThread *thread)
/* Mark the thread as stopped */
threadState |= IL_TS_STOPPED;
ILInterlockedStoreU2(&(thread->state), threadState);
- /* Change the thread count */
+ /* Change the thread count */
_ILThreadAdjustCount(-1, ((threadState & IL_TS_BACKGROUND) !=
0) ? -1 : 0);
}
_ILMutexUnlock(&(thread->lock));
@@ -728,7 +728,7 @@ int ILThreadIsAborting(void)
{
ILThread *thread = _ILThreadGetSelf();
ILUInt16 threadState;
-
+
threadState = ILInterlockedLoadU2(&(thread->state));
/* Determine if an abort is in progress on this thread */
return ((threadState & (IL_TS_ABORTED)) != 0);
@@ -738,7 +738,7 @@ int ILThreadIsAbortRequested(void)
{
ILThread *thread = _ILThreadGetSelf();
ILUInt16 threadState;
-
+
threadState = ILInterlockedLoadU2(&(thread->state));
/* Determine if an abort is in progress on this thread */
return ((threadState & (IL_TS_ABORT_REQUESTED)) != 0);
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 4 ++++
support/thr_defs.h | 18 +++++++++---------
support/thread.c | 6 +++---
3 files changed, 16 insertions(+), 12 deletions(-)
hooks/post-receive
--
DotGNU Portable.NET engine, compilers and tools (pnet)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 371e013c41bd33968e856a27f1963343eb886dfc,
Klaus Treichel <=
- Prev by Date:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 240c3be1a6099c71fe9566cedda45d7856497414
- Next by Date:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. f7416a42ef725fc90f38d742a227a52334a3ec4a
- Previous by thread:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. 240c3be1a6099c71fe9566cedda45d7856497414
- Next by thread:
[dotgnu-pnet-commits] [SCM] DotGNU Portable.NET engine, compilers and tools (pnet) branch, master, updated. f7416a42ef725fc90f38d742a227a52334a3ec4a
- Index(es):