mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.docs, MINGW tls patch removed
git-svn-id: svn://ultimatepp.org/upp/trunk@14420 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
4056dc0f0e
commit
945a40c24f
19 changed files with 146 additions and 210 deletions
|
|
@ -29,11 +29,7 @@ public:
|
|||
Pool();
|
||||
~Pool();
|
||||
|
||||
#ifdef MINGW_TLS_PATCH
|
||||
static FastMingwTls<bool> finlock;
|
||||
#else
|
||||
static thread_local bool finlock;
|
||||
#endif
|
||||
|
||||
bool DoJob();
|
||||
static void ThreadRun(int tno);
|
||||
|
|
@ -43,13 +39,8 @@ public:
|
|||
|
||||
static Pool& GetPool();
|
||||
|
||||
#ifdef MINGW_TLS_PATCH
|
||||
static FastMingwTls<int> worker_index;
|
||||
static FastMingwTls<CoWork *> current;
|
||||
#else
|
||||
static thread_local int worker_index;
|
||||
static thread_local CoWork *current;
|
||||
#endif
|
||||
|
||||
ConditionVariable waitforfinish;
|
||||
Link<MJob, 2> jobs; // global stack and CoWork stack as double-linked lists
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue