1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

Polishing:

1) add support for joinable threads to Thread class;
2) move checking of thread model to Manager from mysqlmanager.cc,
because it is needed only for IM-main process.
This commit is contained in:
anozdrin/alik@booka.
2006-11-21 17:31:03 +03:00
parent 1efc862080
commit ff0325f162
9 changed files with 146 additions and 77 deletions

View File

@@ -105,7 +105,7 @@ static int wait_process(My_process_info *pi)
couldn't use wait(), because it could return in any wait() in the program.
*/
if (linuxthreads)
if (Manager::is_linux_threads())
wait(NULL); /* LinuxThreads were detected */
else
waitpid(*pi, NULL, 0);
@@ -564,7 +564,7 @@ int Instance::start()
instance_monitor= new Instance_monitor(this);
if (instance_monitor == NULL || instance_monitor->start_detached())
if (instance_monitor == NULL || instance_monitor->start(Thread::DETACHED))
{
delete instance_monitor;
log_error("Instance::start(): failed to create the monitoring thread"