3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005 - 2007 Christian Schoenebeck * |
* Copyright (C) 2005 - 2011 Christian Schoenebeck * |
7 |
* * |
* * |
8 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
9 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
23 |
|
|
24 |
#include "Thread.h" |
#include "Thread.h" |
25 |
|
|
26 |
|
#if HAVE_CONFIG_H |
27 |
|
# include <config.h> |
28 |
|
#endif |
29 |
|
|
30 |
// this is the minimum stack size a thread will be spawned with |
// this is the minimum stack size a thread will be spawned with |
31 |
// if this value is too small, the OS will allocate memory on demand and |
// if this value is too small, the OS will allocate memory on demand and |
32 |
// thus might lead to dropouts in realtime threads |
// thus might lead to dropouts in realtime threads |
367 |
return 0; |
return 0; |
368 |
} |
} |
369 |
|
|
370 |
|
void Thread::TestCancel() { |
371 |
|
#if CONFIG_PTHREAD_TESTCANCEL |
372 |
|
pthread_testcancel(); |
373 |
|
#endif |
374 |
|
} |
375 |
|
|
376 |
#if defined(WIN32) |
#if defined(WIN32) |
377 |
DWORD WINAPI __win32thread_launcher(LPVOID lpParameter) { |
DWORD WINAPI __win32thread_launcher(LPVOID lpParameter) { |
378 |
Thread* t; |
Thread* t; |