Skip to content

Commit 5728a69

Browse files
committed
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
1 parent 4debe71 commit 5728a69

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

src/rt/rust_task_thread.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ rust_task_thread::rust_task_thread(rust_scheduler *sched,
4242
{
4343
LOGPTR(this, "new dom", (uintptr_t)this);
4444
isaac_init(kernel, &rctx);
45-
#ifndef __WIN32__
46-
pthread_attr_init(&attr);
47-
pthread_attr_setstacksize(&attr, 1024 * 1024);
48-
pthread_attr_setdetachstate(&attr, true);
49-
#endif
5045

5146
if (!tls_initialized)
5247
init_tls();
@@ -59,9 +54,6 @@ rust_task_thread::~rust_task_thread() {
5954
running_tasks.delete_all();
6055
blocked_tasks.delete_all();
6156
dead_tasks.delete_all();
62-
#ifndef __WIN32__
63-
pthread_attr_destroy(&attr);
64-
#endif
6557
}
6658

6759
void

src/rt/rust_task_thread.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ struct rust_task_thread : public kernel_owned<rust_task_thread>,
2424
const int id;
2525

2626
#ifndef __WIN32__
27-
pthread_attr_t attr;
2827
static pthread_key_t task_key;
2928
#else
3029
static DWORD task_key;

0 commit comments

Comments
 (0)