rt: Remove some bogus pthread settings from rust_task_thread
This is all handled by rust_thread, and 'true' isn't even a valid value to pass to pthread_attr_setdetachestate
This commit is contained in:
@@ -42,11 +42,6 @@ rust_task_thread::rust_task_thread(rust_scheduler *sched,
|
|||||||
{
|
{
|
||||||
LOGPTR(this, "new dom", (uintptr_t)this);
|
LOGPTR(this, "new dom", (uintptr_t)this);
|
||||||
isaac_init(kernel, &rctx);
|
isaac_init(kernel, &rctx);
|
||||||
#ifndef __WIN32__
|
|
||||||
pthread_attr_init(&attr);
|
|
||||||
pthread_attr_setstacksize(&attr, 1024 * 1024);
|
|
||||||
pthread_attr_setdetachstate(&attr, true);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!tls_initialized)
|
if (!tls_initialized)
|
||||||
init_tls();
|
init_tls();
|
||||||
@@ -59,9 +54,6 @@ rust_task_thread::~rust_task_thread() {
|
|||||||
running_tasks.delete_all();
|
running_tasks.delete_all();
|
||||||
blocked_tasks.delete_all();
|
blocked_tasks.delete_all();
|
||||||
dead_tasks.delete_all();
|
dead_tasks.delete_all();
|
||||||
#ifndef __WIN32__
|
|
||||||
pthread_attr_destroy(&attr);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
@@ -24,7 +24,6 @@ private:
|
|||||||
const int id;
|
const int id;
|
||||||
|
|
||||||
#ifndef __WIN32__
|
#ifndef __WIN32__
|
||||||
pthread_attr_t attr;
|
|
||||||
static pthread_key_t task_key;
|
static pthread_key_t task_key;
|
||||||
#else
|
#else
|
||||||
static DWORD task_key;
|
static DWORD task_key;
|
||||||
|
|||||||
Reference in New Issue
Block a user