Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Thread synchronization routine?

Status
Not open for further replies.

ConradATPG

Member level 1
Joined
Dec 1, 2010
Messages
36
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,288
Activity points
1,509
I am developing a threaded application to run on a MAC that needs to run on many UNIX platforms. Apple has a function (OSAtomicTestAndSetBarrier) that takes a index into an array of bits, sets the bit and returns whether the bit was set previous. This function is uninterruptible and used to synchronize access to a data structures by threads.

bool OSAtomicTestAndSetBarrier(uint32_t n, volatile void *theAddress);

I think that this function is proprietary so I need a similar function that is part of the standard threads library or source code that can be compiled to run on different UNIX machines. Any suggestions?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top