diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-03-18 15:47:19 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-03-18 15:47:19 +0000 |
commit | 31caec794c3978d55d79f715f21fb72948c9f300 (patch) | |
tree | 475474eb40efe84d3696177054dea9867c0f9261 /includes/OSThreads.h | |
parent | 7583384214ed6aa4a90d77c5975728a9b06149f2 (diff) | |
download | haskell-31caec794c3978d55d79f715f21fb72948c9f300.tar.gz |
Set thread affinity with +RTS -qa (only on Linux so far)
Diffstat (limited to 'includes/OSThreads.h')
-rw-r--r-- | includes/OSThreads.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/OSThreads.h b/includes/OSThreads.h index 73ef4d2b13..f5c434fc28 100644 --- a/includes/OSThreads.h +++ b/includes/OSThreads.h @@ -186,8 +186,8 @@ void setThreadLocalVar (ThreadLocalKey *key, void *value); void freeThreadLocalKey (ThreadLocalKey *key); // Processors and affinity -nat getNumberOfProcessors (void); - +nat getNumberOfProcessors (void); +void setThreadAffinity (nat n, nat m); #endif // !CMINUSMINUS #else |