Merrion
Junior Contributor
I have a single function that may be called by more than one thread at once but I want it to be a critical region i.e. if one thread is already in it make the other thread wait for the region to be freed before entering.
Any ideas?
Any ideas?