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

Question on how to use ga_lock. #212

Open
jsboer opened this issue Apr 1, 2021 · 0 comments
Open

Question on how to use ga_lock. #212

jsboer opened this issue Apr 1, 2021 · 0 comments

Comments

@jsboer
Copy link

jsboer commented Apr 1, 2021

I am new to GA. The manual say any process attempt to lock a mutex which has already been locked will be a fatal error, and the process locking mutex will enter the critical section.

My question is, how to prevent other processes lock the locked mutex, for there is no API consult the status of lock. And if more than one process try to lock the mutex, the program will stop for the fatal error. So what is the right way to use lock and mutex? I still can not figure out it after seeing the example in manual, is there any example in more detail?

Thank you!

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