Now uses spawn_kernel_thread() instead of spawn_thread().

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7911 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-06-11 15:47:19 +00:00
parent d349b8c336
commit e27f9449fe

View File

@ -6,6 +6,8 @@
#include <Vector.h>
#include <KernelExport.h>
#include "KDiskDevice.h"
#include "KDiskDeviceJob.h"
#include "KDiskDeviceJobQueue.h"
@ -180,7 +182,7 @@ KDiskDeviceJobQueue::Execute()
if (fSyncSemaphore < 0)
return fSyncSemaphore;
// spawn a thread and run it
fThread = spawn_thread(_ThreadEntry, "disk device jobber",
fThread = spawn_kernel_thread(_ThreadEntry, "disk device jobber",
B_NORMAL_PRIORITY, this);
if (fThread < 0) {
delete_sem(fSyncSemaphore);