sharedspice.c, use GetCurrentThreadId() instead of GetTreadID()

Thanks to Thomas Uhle for this patch, see
  http://sourceforge.net/p/ngspice/patches/26/
  #26 GetThreadId() missing in older Win32 API, proposing to use GetCurrentThreadId() instead
This commit is contained in:
Thomas Uhle 2014-12-08 19:39:18 +01:00 committed by rlar
parent ed73bf393e
commit 2851e650d3
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ typedef SRWLOCK mutexType;
typedef CRITICAL_SECTION mutexType;
#endif
#define thread_self() GetCurrentThread()
#define threadid_self() GetThreadId(GetCurrentThread())
#define threadid_self() GetCurrentThreadId()
typedef HANDLE threadId_t;
#define WIN_THREADS
#define THREADS