mirror of
https://github.com/boostorg/thread.git
synced 2026-01-24 06:22:12 +00:00
extern "C" functions are static
[SVN r72166]
This commit is contained in:
4
src/pthread/once.cpp
Executable file → Normal file
4
src/pthread/once.cpp
Executable file → Normal file
@@ -22,12 +22,12 @@ namespace boost
|
||||
pthread_key_t epoch_tss_key;
|
||||
pthread_once_t epoch_tss_key_flag=PTHREAD_ONCE_INIT;
|
||||
|
||||
extern "C" void delete_epoch_tss_data(void* data)
|
||||
extern "C" static void delete_epoch_tss_data(void* data)
|
||||
{
|
||||
free(data);
|
||||
}
|
||||
|
||||
extern "C" void create_epoch_tss_key()
|
||||
extern "C" static void create_epoch_tss_key()
|
||||
{
|
||||
BOOST_VERIFY(!pthread_key_create(&epoch_tss_key,delete_epoch_tss_data));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user