summaryrefslogtreecommitdiff
path: root/rts/Task.h
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2011-12-06 15:12:07 +0000
committerSimon Marlow <marlowsd@gmail.com>2011-12-06 16:00:27 +0000
commit92e7d6c92fdd14de424524564376d3522f2a40cc (patch)
tree5715d44012b452f5020ca14331a1fe50d5fd9600 /rts/Task.h
parent8b75acd3ca25165536f18976c8d80cb62ad613e4 (diff)
downloadhaskell-92e7d6c92fdd14de424524564376d3522f2a40cc.tar.gz
Allow the number of capabilities to be increased at runtime (#3729)
At present the number of capabilities can only be *increased*, not decreased. The latter presents a few more challenges!
Diffstat (limited to 'rts/Task.h')
-rw-r--r--rts/Task.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rts/Task.h b/rts/Task.h
index 386e003d28..59a316bd81 100644
--- a/rts/Task.h
+++ b/rts/Task.h
@@ -235,6 +235,11 @@ void interruptWorkerTask (Task *task);
#endif /* THREADED_RTS */
+// Update any (Capability *) pointers belonging to Tasks after the
+// Capability array is moved/resized.
+//
+void updateCapabilityRefs (void);
+
// -----------------------------------------------------------------------------
// INLINE functions... private from here on down: