Files
ladybird/Userland
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
..
2020-11-10 19:03:08 +01:00
2020-12-16 17:29:28 +01:00
2020-12-26 10:05:50 +01:00
2020-10-03 12:36:49 +02:00
2020-10-24 12:56:25 +02:00
2020-12-17 19:39:56 +01:00
2020-11-28 14:28:58 +01:00
2020-12-16 23:26:35 +01:00
2020-07-19 11:46:37 +02:00
2020-11-10 12:06:04 +01:00
2020-12-24 13:22:24 +01:00
2020-12-29 11:24:23 +01:00
2020-11-17 09:40:03 +01:00
2020-12-26 10:05:50 +01:00
2020-11-08 16:16:03 +01:00
2020-10-25 18:52:51 +01:00
2020-12-03 21:55:02 +01:00
2020-10-25 14:37:39 +01:00