Now maintains the private libroot variable "_single_threaded".
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7372 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2002-2003, Axel Dörfler, [email protected]. All rights reserved.
|
** Copyright 2002-2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
** Distributed under the terms of the OpenBeOS License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
#include "libroot_private.h"
|
||||||
#include "tls.h"
|
#include "tls.h"
|
||||||
#include "syscalls.h"
|
#include "syscalls.h"
|
||||||
|
|
||||||
@@ -41,6 +42,9 @@ thread_entry(thread_func entry, void *data)
|
|||||||
thread_id
|
thread_id
|
||||||
spawn_thread(thread_func entry, const char *name, int32 priority, void *data)
|
spawn_thread(thread_func entry, const char *name, int32 priority, void *data)
|
||||||
{
|
{
|
||||||
|
_single_threaded = false;
|
||||||
|
// used for I/O locking - BeOS compatibility issue
|
||||||
|
|
||||||
return _kern_spawn_thread(thread_entry, name, priority, entry, data);
|
return _kern_spawn_thread(thread_entry, name, priority, entry, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user