diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-17 17:17:48 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-17 17:18:24 -0700 |
| commit | 5728a69e78d62da49ec3c6c5ce5ebab9932f4e44 (patch) | |
| tree | 2a81daa1ec30c55df83c683bf384cd74031eef3e /src/rt | |
| parent | 4debe7178582c9aded3ded8b987999317b35952a (diff) | |
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
Diffstat (limited to 'src/rt')
| -rw-r--r-- | src/rt/rust_task_thread.cpp | 8 | ||||
| -rw-r--r-- | src/rt/rust_task_thread.h | 1 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/rt/rust_task_thread.cpp b/src/rt/rust_task_thread.cpp index 8611e6e0f79..3c3c11b0a1e 100644 --- a/src/rt/rust_task_thread.cpp +++ b/src/rt/rust_task_thread.cpp @@ -42,11 +42,6 @@ rust_task_thread::rust_task_thread(rust_scheduler *sched, { LOGPTR(this, "new dom", (uintptr_t)this); 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) init_tls(); @@ -59,9 +54,6 @@ rust_task_thread::~rust_task_thread() { running_tasks.delete_all(); blocked_tasks.delete_all(); dead_tasks.delete_all(); -#ifndef __WIN32__ - pthread_attr_destroy(&attr); -#endif } void diff --git a/src/rt/rust_task_thread.h b/src/rt/rust_task_thread.h index 7363a89d749..20f37ab7bcc 100644 --- a/src/rt/rust_task_thread.h +++ b/src/rt/rust_task_thread.h @@ -24,7 +24,6 @@ private: const int id; #ifndef __WIN32__ - pthread_attr_t attr; static pthread_key_t task_key; #else static DWORD task_key; |
