dotgnu-pnet-commits
[Top][All Lists]
Advanced

[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. b533faae51608d6ae5b8f0658910aa519b1c18f8
Date: Fri, 22 Oct 2010 18:05:30 +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  b533faae51608d6ae5b8f0658910aa519b1c18f8 (commit)
      from  63e4e9181177164fd8d47bd14db378a57fb3f3cb (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=b533faae51608d6ae5b8f0658910aa519b1c18f8

commit b533faae51608d6ae5b8f0658910aa519b1c18f8
Author: Klaus Treichel <address@hidden>
Date:   Fri Oct 22 19:20:58 2010 +0200

    Move initialization of the interlocked functions to the specific
    threading system initialization functions.

diff --git a/ChangeLog b/ChangeLog
index 3389c5e..fab71b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2010-10-22  Klaus Treichel  <address@hidden>
+
+       * support/thread.c (ILThreadInit): Move initialization of the
+       interlocked functions from here to the specific _ILThreadInitSystem
+       functions
+
+       * support/pt_defs.c, support/no_defs.c, support/w32_defs.c
+       (_ILThreadInitSystem): Move initialization of the interlocked functions
+       to here.
+
 2010-07-18  Klaus Treichel  <address@hidden>
 
        * engine/unroll.c (FreeTopRegister): Fix build with unroller without
diff --git a/support/no_defs.c b/support/no_defs.c
index 60ae4b8..37122b3 100644
--- a/support/no_defs.c
+++ b/support/no_defs.c
@@ -43,6 +43,9 @@ void _ILThreadInitSystem(ILThread *mainThread)
 {
        mainThread->handle = 0;
        mainThread->identifier = 0;
+
+       /* Initialize the atomic operations */
+       ILInterlockedInit();
 }
 
 int _ILThreadCreateSystem(ILThread *thread)
diff --git a/support/pt_defs.c b/support/pt_defs.c
index 91f4ed0..24fdeae 100755
--- a/support/pt_defs.c
+++ b/support/pt_defs.c
@@ -1019,6 +1019,9 @@ void _ILThreadInitSystem(ILThread *mainThread)
        /* Set the thread handle and identifier for the main thread */
        mainThread->handle = pthread_self();
        mainThread->identifier = mainThread->handle;
+
+       /* Initialize the atomic operations */
+       ILInterlockedInit();
 }
 
 void _ILThreadSetPriority(ILThread *thread, int priority)
diff --git a/support/thread.c b/support/thread.c
index 58f2927..95d15eb 100644
--- a/support/thread.c
+++ b/support/thread.c
@@ -77,9 +77,6 @@ static void _ILThreadInit(void)
        /* Initialize the main thread to all 0s */
        ILMemZero(&mainThread, sizeof(ILThread));
 
-       /* Initialize the atomic operations */
-       ILInterlockedInit();
-       
        /* Perform system-specific initialization */
        _ILThreadInitSystem(&mainThread);
 
diff --git a/support/w32_defs.c b/support/w32_defs.c
index ab60b23..2d0c0f9 100755
--- a/support/w32_defs.c
+++ b/support/w32_defs.c
@@ -128,6 +128,9 @@ void _ILThreadInitSystem(ILThread *mainThread)
                                        GetCurrentProcess(), (HANDLE 
*)(&(mainThread->handle)),
                                        0, 0, DUPLICATE_SAME_ACCESS);
        mainThread->identifier = GetCurrentThreadId();
+
+       /* Initialize the atomic operations */
+       ILInterlockedInit();
 }
 
 /*

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog          |   10 ++++++++++
 support/no_defs.c  |    3 +++
 support/pt_defs.c  |    3 +++
 support/thread.c   |    3 ---
 support/w32_defs.c |    3 +++
 5 files changed, 19 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
DotGNU Portable.NET engine, compilers and tools (pnet)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]