Andrew Kaster
8d0b4657e7
LibThread: Improve semantics of Thread::join, and remove Thread::quit.
...
Thread::quit was created before the pthread_create_helper in pthread.cpp
that automagically calls pthread_exit from all pthreads after the user's
thread function exits. It is unused, and unecessary now.
Cleanup some logging, and make join return a Result<T, ThreadError>.
This also adds a new type, LibThread::ThreadError as an
AK::DistinctNumeric. Hopefully, this will make it possible to have a
Result<int, ThreadError> and have it compile? It also makes it clear
that the int there is an error at the call site.
By default, the T on join is void, meaning the caller doesn't care about
the return value from the thread.
As Result is a [[nodiscard]] type, also change the current caller of
join to explicitly ignore it.
Move the logging out of join as well, as it's the user's
responsibility whether to log or not.
2021-01-01 23:01:48 +01:00
..
2021-01-01 14:45:09 +01:00
2020-12-31 21:51:00 +01:00
2020-11-10 19:03:08 +01:00
2020-12-21 00:09:48 +01:00
2020-12-02 16:31:30 +01:00
2020-11-15 13:11:21 +01:00
2020-08-06 20:41:13 +02:00
2020-11-22 16:07:00 +01:00
2020-08-06 20:41:13 +02:00
2020-12-16 17:29:28 +01:00
2020-12-26 10:05:50 +01:00
2020-12-06 00:06:53 +01:00
2020-10-25 13:59:41 +01:00
2020-12-06 00:06:53 +01:00
2020-10-03 12:36:49 +02:00
2020-12-06 00:06:53 +01:00
2020-12-24 21:46:35 +01:00
2020-12-06 00:06:53 +01:00
2020-12-23 01:03:32 +01:00
2020-12-21 00:09:48 +01:00
2020-12-21 00:09:48 +01:00
2020-10-24 12:56:25 +02:00
2020-12-25 02:14:56 +01:00
2020-08-12 20:40:59 +02:00
2020-12-21 00:09:48 +01:00
2020-12-06 00:06:53 +01:00
2020-07-30 18:47:41 +02:00
2020-12-17 19:39:56 +01:00
2020-11-27 21:32:41 +01:00
2020-11-28 14:28:58 +01:00
2020-12-25 02:14:56 +01:00
2020-12-24 20:48:54 +01:00
2020-12-06 00:06:53 +01:00
2020-09-14 20:58:12 +02:00
2020-12-06 00:06:53 +01:00
2020-12-22 23:37:11 +01:00
2020-12-06 00:06:53 +01:00
2020-08-06 20:41:13 +02:00
2020-10-25 13:59:41 +01:00
2020-08-12 20:40:59 +02:00
2020-12-06 00:06:53 +01:00
2020-07-11 23:56:33 +02:00
2020-12-14 20:25:01 +01:00
2021-01-01 17:46:39 +01:00
2020-11-09 16:21:29 +01:00
2020-10-29 11:49:47 +01:00
2020-12-16 23:26:35 +01:00
2020-12-06 00:06:53 +01:00
2020-12-21 00:09:48 +01:00
2020-12-06 00:06:53 +01:00
2020-12-21 00:09:48 +01:00
2020-12-06 00:06:53 +01:00
2020-12-06 00:06:53 +01:00
2020-08-17 00:01:13 +02:00
2020-07-19 11:46:37 +02:00
2020-10-20 18:08:13 +02:00
2020-08-06 20:41:13 +02:00
2020-08-06 20:41:13 +02:00
2020-12-21 00:09:48 +01:00
2020-12-13 11:54:11 +01:00
2020-11-29 10:14:43 +01:00
2020-12-06 00:06:53 +01:00
2020-07-04 14:05:57 +02:00
2020-12-31 21:51:00 +01:00
2020-12-24 10:25:18 +01:00
2020-07-04 14:05:57 +02:00
2020-12-06 00:06:53 +01:00
2020-12-27 01:11:42 +01:00
2020-10-29 22:27:24 +01:00
2020-11-10 12:06:04 +01:00
2020-12-24 13:22:24 +01:00
2020-12-25 17:04:28 +01:00
2020-12-30 13:31:55 +01:00
2020-08-06 20:41:13 +02:00
2020-12-29 11:24:23 +01:00
2020-12-06 00:06:53 +01:00
2020-09-25 21:18:17 +02:00
2020-11-17 09:40:03 +01:00
2020-08-06 20:41:13 +02:00
2020-12-26 10:05:50 +01:00
2020-09-10 16:00:11 +02:00
2020-12-21 00:09:48 +01:00
2020-12-24 20:48:54 +01:00
2020-11-08 16:16:03 +01:00
2020-08-04 18:17:16 +02:00
2020-12-06 00:06:53 +01:00
2020-12-06 00:06:53 +01:00
2020-12-22 23:37:11 +01:00
2020-09-25 21:18:17 +02:00
2020-08-01 16:46:04 +02:00
2020-10-25 18:52:51 +01:00
2020-08-12 20:40:59 +02:00
2020-09-11 16:07:45 +02:00
2020-12-19 18:29:13 +01:00
2020-12-31 23:40:27 +01:00
2020-12-03 21:55:02 +01:00
2021-01-01 23:01:48 +01:00
2020-12-26 11:54:54 +01:00
2020-12-21 00:09:48 +01:00
2020-12-29 16:55:43 +01:00
2020-12-27 01:16:56 +01:00
2020-12-06 00:06:53 +01:00
2020-09-25 21:18:17 +02:00
2020-11-09 16:21:29 +01:00
2020-12-12 21:28:12 +01:00
2020-08-06 20:41:13 +02:00
2020-10-25 14:37:39 +01:00
2020-10-01 21:15:35 +02:00
2020-12-21 09:57:26 +01:00
2020-12-21 12:23:50 +01:00
2020-11-15 13:11:21 +01:00
2020-12-21 00:09:48 +01:00
2020-12-21 18:26:12 +01:00
2020-10-13 13:52:52 +02:00
2020-09-16 19:39:17 +02:00
2020-12-06 00:06:53 +01:00
2020-08-06 20:41:13 +02:00