posix/pthread threading implementation missing some basic functions
While testing pthread based threading (gthr-amigaos-posix.c) , find out that it miss some necessary basic functions, because of which even simple test cases can't be complied. There they are:
__gthread_cond_init (__gthread_cond_t *cond)
__gthread_cond_signal (__gthread_cond_t *__cond)
__gthread_cond_broadcast (__gthread_cond_t *cond)
__gthread_cond_wait (__gthread_cond_t *cond, __gthread_mutex_t *mutex)
__gthread_cond_wait_recursive (__gthread_cond_t *cond, __gthread_recursive_mutex_t *mutex)
__gthread_cond_timedwait (__gthread_cond_t *cond,
__gthread_cond_destroy (__gthread_cond_t *__cond)
Small test cases all of which want those functions:
https://en.cppreference.com/w/cpp/thread/async https://en.cppreference.com/w/cpp/thread/condition_variable https://en.cppreference.com/w/cpp/thread/future_error https://en.cppreference.com/w/cpp/thread/future https://en.cppreference.com/w/cpp/thread/notify_all_at_thread_exit https://en.cppreference.com/w/cpp/thread/packaged_task https://en.cppreference.com/w/cpp/thread/promise https://en.cppreference.com/w/cpp/thread/shared_future https://en.cppreference.com/w/cpp/thread/timed_mutex
I tried to compile a bigger project with -athread=pthread instead of -athread=native for sake of tests, and it asks for the same set of missing functions.
How hard will be to implement those? I can donate 50-100$ no problems if there any interest and motivation will be for :)