diff options
author | Simon Marlow <marlowsd@gmail.com> | 2011-12-07 15:46:27 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2011-12-07 16:06:42 +0000 |
commit | 8b48562e8cd773b4bc162edb4fc6d05a7654c7e1 (patch) | |
tree | 19bb15c2af5bee9f8fa12a071ebb5fd824b18ee5 /includes | |
parent | eea40328004e3cad1fdd31004337e10e6ae5fc52 (diff) | |
download | haskell-8b48562e8cd773b4bc162edb4fc6d05a7654c7e1.tar.gz |
Define getNumberOfProcessors() even when !THREADED_RTS
Diffstat (limited to 'includes')
-rw-r--r-- | includes/rts/OSThreads.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/includes/rts/OSThreads.h b/includes/rts/OSThreads.h index c70f418229..cf72e1de69 100644 --- a/includes/rts/OSThreads.h +++ b/includes/rts/OSThreads.h @@ -183,8 +183,7 @@ extern void initCondition ( Condition* pCond ); extern void closeCondition ( Condition* pCond ); extern rtsBool broadcastCondition ( Condition* pCond ); extern rtsBool signalCondition ( Condition* pCond ); -extern rtsBool waitCondition ( Condition* pCond, - Mutex* pMut ); +extern rtsBool waitCondition ( Condition* pCond, Mutex* pMut ); // // Mutexes @@ -201,7 +200,6 @@ void setThreadLocalVar (ThreadLocalKey *key, void *value); void freeThreadLocalKey (ThreadLocalKey *key); // Processors and affinity -nat getNumberOfProcessors (void); void setThreadAffinity (nat n, nat m); #endif // !CMINUSMINUS @@ -213,12 +211,17 @@ void setThreadAffinity (nat n, nat m); #endif /* defined(THREADED_RTS) */ +#ifndef CMINUSMINUS // // Support for forkOS (defined regardless of THREADED_RTS, but does // nothing when !THREADED_RTS). // -#ifndef CMINUSMINUS int forkOS_createThread ( HsStablePtr entry ); + +// +// Returns the number of processor cores in the machine +// +nat getNumberOfProcessors (void); #endif #endif /* RTS_OSTHREADS_H */ |