diff options
Diffstat (limited to 'rts/parallel/Dist.h')
-rw-r--r-- | rts/parallel/Dist.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/rts/parallel/Dist.h b/rts/parallel/Dist.h new file mode 100644 index 0000000000..c67cce2748 --- /dev/null +++ b/rts/parallel/Dist.h @@ -0,0 +1,20 @@ +#ifndef __DIST_H +#define __DIST_H + +#ifdef DIST + +#include "Rts.h" + +typedef StgWord32 StgPEId; + +// interface functions for Haskell Language calls +StgWord32 cGetPECount(void); +StgPEId cGetPEId(StgWord32 n); +StgPEId cGetMyPEId(void); +StgPEId cGetCertainOwner(StgClosure *mv); +void cRevalIO(StgClosure *job,StgPEId p); +StgPEId cGetHostOwner(StgByteArray h); + +#endif /* DIST */ + +#endif /* __DIST_H */ |