2
0
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:
Anthony Williams
2011-05-25 21:18:59 +00:00
parent f07640850b
commit a64fa2c18f

4
src/pthread/once.cpp Executable file → Normal file
View 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));
}