Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

posix/pthread threading implementation missing some basic functions #95

Open
kas1e opened this issue Jan 11, 2021 · 1 comment
Open

Comments

@kas1e
Copy link

kas1e commented Jan 11, 2021

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

@kas1e
Copy link
Author

kas1e commented Jan 13, 2021

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant