diff options
author | Simon Marlow <marlowsd@gmail.com> | 2009-03-17 09:33:09 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2009-03-17 09:33:09 +0000 |
commit | 0ee0be109fd00ec629f7a2ad6a597885a0c9d5b4 (patch) | |
tree | f34e7ebeb8ff40299745b169c4ca4b7bed4b2c54 /includes/OSThreads.h | |
parent | 8844513929ccd58854227ddb6275095a1f1742ad (diff) | |
download | haskell-0ee0be109fd00ec629f7a2ad6a597885a0c9d5b4.tar.gz |
Add getNumberOfProcessors(), FIX MacOS X build problem (hopefully)
Somebody needs to implement getNumberOfProcessors() for MacOS X,
currently it will return 1.
Diffstat (limited to 'includes/OSThreads.h')
-rw-r--r-- | includes/OSThreads.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/OSThreads.h b/includes/OSThreads.h index d4dbc361e1..73ef4d2b13 100644 --- a/includes/OSThreads.h +++ b/includes/OSThreads.h @@ -185,6 +185,9 @@ void *getThreadLocalVar (ThreadLocalKey *key); void setThreadLocalVar (ThreadLocalKey *key, void *value); void freeThreadLocalKey (ThreadLocalKey *key); +// Processors and affinity +nat getNumberOfProcessors (void); + #endif // !CMINUSMINUS #else |