Age | Commit message (Collapse) | Author |
|
Needed to use UINT_MAX.
|
|
|
|
|
|
|
|
|
|
|
|
This is using the Linux-only prctl(PR_SET_NAME, …) call, because glibc’s
pthread_setname_np() is doing exactly the same call so there is no
reason to use it instead, as it isn’t any more portable.
I don’t have any other OS to test this on, but if you want to add one
just add an #else defined(__YOUR_OS__) before the #else in thread.h.
|
|
On some systems (e.g. Google Fuchsia) the default stack size of new
threads is insufficient, resulting in crashes.
On other systems the default stack size is unnecessarily large,
which can waste a lot of virtual memory.
By setting it to a sufficiently large fixed value we can ensure that
we don't run out of stack space while keeping down memory usage.
|
|
A symbol starting with two leading underscores is reserved for
the compiler/standard library implementation.
Also remove the trailing two double underscores for consistency
and symmetry.
|
|
|
|
|
|
* Remove the use of malloc() in pthread_create()
* Make function return values match regular pthread
* Fix code style issues
* Simplify some code
|
|
|
|
|
|
They are all single line functions.
|
|
Since we don't want to probe for winpthreads anymore, this macro isn't
usefull anymore
|
|
This function will be required to make dav1d_init threadsafe.
Full erro checking support is included in this implementation,
for completeness, even though dav1d_init cannot fail, and thus
will ignore the return value of pthread_once.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
|
|
|