Commit 4e7478aa authored by Jayesh Krishna's avatar Jayesh Krishna
Browse files

[svn-r5633] Define thread specific abstractions on windows as in unix. This...

[svn-r5633] Define thread specific abstractions on windows as in unix. This change should be reverted back/re-visited after we figure out the *right* defaults for these abstractions
parent 826f97c0
......@@ -2917,23 +2917,15 @@ Sub AddDefinitions( fout, filename, b64 )
fout.WriteLine("#define MPIU_THREAD_PACKAGE_NAME MPIU_THREAD_PACKAGE_NONE")
fout.WriteLine("#endif")
Case "MPIU_THREAD_REFCOUNT"
fout.WriteLine("#ifdef MPICH_MULTITHREADED")
fout.WriteLine("#define MPIU_THREAD_REFCOUNT MPIU_REFCOUNT_NONE")
fout.WriteLine("#else")
fout.WriteLine("/* #undef MPIU_THREAD_REFCOUNT */")
fout.WriteLine("#endif")
Case "MPIU_THREAD_GRANULARITY"
fout.WriteLine("#ifdef MPICH_MULTITHREADED")
fout.WriteLine("#define MPIU_THREAD_GRANULARITY MPIU_THREAD_GRANULARITY_GLOBAL")
fout.WriteLine("#else")
fout.WriteLine("/* #undef MPIU_THREAD_GRANULARITY */")
fout.WriteLine("#define MPIU_THREAD_GRANULARITY MPIU_THREAD_GRANULARITY_SINGLE")
fout.WriteLine("#endif")
Case "MPIU_HANDLE_ALLOCATION_METHOD"
fout.WriteLine("#ifdef MPICH_MULTITHREADED")
fout.WriteLine("#define MPIU_HANDLE_ALLOCATION_METHOD MPIU_HANDLE_ALLOCATION_MUTEX")
fout.WriteLine("#else")
fout.WriteLine("/* #undef MPIU_HANDLE_ALLOCATION_METHOD */")
fout.WriteLine("#endif")
Case "MPIU_MUTEX_WAIT_TIME"
fout.WriteLine("/* #undef MPIU_MUTEX_WAIT_TIME */")
Case "_REENTRANT"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment