mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
pthread_handler_decl() changed to be ctags-friendly
(and contain extern "C" when necessary)
This commit is contained in:
@@ -43,8 +43,6 @@ typedef pid_t My_process_info;
|
||||
typedef PROCESS_INFORMATION My_process_info;
|
||||
#endif
|
||||
|
||||
C_MODE_START
|
||||
|
||||
/*
|
||||
Proxy thread is a simple way to avoid all pitfalls of the threads
|
||||
implementation in the OS (e.g. LinuxThreads). With such a thread we
|
||||
@@ -52,7 +50,7 @@ C_MODE_START
|
||||
to do it in a portable way.
|
||||
*/
|
||||
|
||||
pthread_handler_decl(proxy, arg)
|
||||
pthread_handler_t proxy(void *arg)
|
||||
{
|
||||
Instance *instance= (Instance *) arg;
|
||||
start_and_monitor_instance(&instance->options,
|
||||
@@ -60,9 +58,6 @@ pthread_handler_decl(proxy, arg)
|
||||
return 0;
|
||||
}
|
||||
|
||||
C_MODE_END
|
||||
|
||||
|
||||
/*
|
||||
Wait for an instance
|
||||
|
||||
|
||||
Reference in New Issue
Block a user