Can anyone tell me whether it is allowed to use a Semaphore in a Reentrant function.
venuaccha
19
Newbie Poster
Recommended Answers
Jump to PostDo you mean 'will the compiler complain' - no.
'Is it a good idea' - Again, probably not.Reentrant functions should have all of their data passed to them as arguments, and not use global data structures. Semaphores are traffic cops for access to global objects or shared objects.
…
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.