Commit 0a2bd9cc authored by Sergei Trofimovich's avatar Sergei Trofimovich
Browse files

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: default avatarSergei Trofimovich <siarheit@google.com>
parent 0e51109d
......@@ -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)
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment