rts: mark 'shutdownCapability' as static
authorSergei Trofimovich <siarheit@google.com>
Sun, 7 Feb 2016 18:39:33 +0000 (18:39 +0000)
committerSergei Trofimovich <siarheit@google.com>
Sun, 7 Feb 2016 20:28:13 +0000 (20:28 +0000)
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>
rts/Capability.c
rts/Capability.h

index 45ee2c8..a2078e5 100644 (file)
@@ -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)
index fb9f0aa..561d369 100644 (file)
@@ -224,11 +224,6 @@ INLINE_HEADER void releaseCapability_ (Capability* cap STG_UNUSED,
 //
 extern Capability **capabilities;
 
-// The Capability that was last free.  Used as a good guess for where
-// to assign new threads.
-//
-extern Capability *last_free_capability;
-
 //
 // Indicates that the RTS wants to synchronise all the Capabilities
 // for some reason.  All Capabilities should stop and return to the
@@ -304,11 +299,6 @@ extern void grabCapability (Capability **pCap);
 
 #endif /* !THREADED_RTS */
 
-// Waits for a capability to drain of runnable threads and workers,
-// and then acquires it.  Used at shutdown time.
-//
-void shutdownCapability (Capability *cap, Task *task, rtsBool wait_foreign);
-
 // Shut down all capabilities.
 //
 void shutdownCapabilities(Task *task, rtsBool wait_foreign);