summaryrefslogtreecommitdiff
path: root/rts/Capability.c
diff options
context:
space:
mode:
authorSergei Trofimovich <siarheit@google.com>2016-02-07 18:39:33 +0000
committerSergei Trofimovich <siarheit@google.com>2016-02-07 20:28:13 +0000
commit0a2bd9ccf423dd635677926c1238aab5d3d4b1cb (patch)
tree5bf2afd35e04866e2f3c7aa5fdea28bd334e59ee /rts/Capability.c
parent0e51109d010c474f60f7b3209e399c115c7bcec7 (diff)
downloadhaskell-0a2bd9ccf423dd635677926c1238aab5d3d4b1cb.tar.gz
rts: mark 'shutdownCapability' as static
Noticed by uselex.rb: last_free_capability: [R]: exported from: ./rts/dist/build/Capability.o shutdownCapability: [R]: exported from: ./rts/dist/build/Capability.o Signed-off-by: Sergei Trofimovich <siarheit@google.com>
Diffstat (limited to 'rts/Capability.c')
-rw-r--r--rts/Capability.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/Capability.c b/rts/Capability.c
index 45ee2c8e30..a2078e5a84 100644
--- a/rts/Capability.c
+++ b/rts/Capability.c
@@ -51,7 +51,7 @@ Capability **capabilities = NULL;
// an in-call has a chance of quickly finding a free Capability.
// Maintaining a global free list of Capabilities would require global
// locking, so we don't do that.
-Capability *last_free_capability = NULL;
+static Capability *last_free_capability = NULL;
/*
* Indicates that the RTS wants to synchronise all the Capabilities
@@ -937,7 +937,7 @@ tryGrabCapability (Capability *cap, Task *task)
*
* ------------------------------------------------------------------------- */
-void
+static void
shutdownCapability (Capability *cap USED_IF_THREADS,
Task *task USED_IF_THREADS,
rtsBool safe USED_IF_THREADS)