diff --git a/src/controller/controller_statistics.cpp b/src/controller/controller_statistics.cpp index c0e3072e..a536313f 100644 --- a/src/controller/controller_statistics.cpp +++ b/src/controller/controller_statistics.cpp @@ -46,7 +46,7 @@ unsigned int Controller::maxConnsPerIP = 0; /// Session cache shared memory page IPC::sharedPage shmSessions(SHM_SESSIONS, SHM_SESSIONS_SIZE, true); /// Lock for the session cache shared memory page -IPC::semaphore cacheLock(SEM_SESSCACHE, O_CREAT | O_RDWR, ACCESSPERMS, 1); +IPC::semaphore Controller::cacheLock(SEM_SESSCACHE, O_CREAT | O_RDWR, ACCESSPERMS, 1); //For server-wide totals. Local to this file only. struct streamTotals { diff --git a/src/controller/controller_statistics.h b/src/controller/controller_statistics.h index f134019e..2dbc6b44 100644 --- a/src/controller/controller_statistics.h +++ b/src/controller/controller_statistics.h @@ -17,6 +17,7 @@ namespace Controller { extern bool killOnExit; extern unsigned int maxConnsPerIP; + extern Controller::semaphore cacheLock; //These keep track of which streams are currently active. extern std::map activeStreams;