DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Win version for atomic.h (http://www.daniweb.com/forums/thread165200.html)

amt_muk Dec 31st, 2008 7:16 am
Win version for atomic.h
 
Hello Friends,

I am trying to porting an unix c++ program into windows using MSVC8.0 compiler. In my unix version there are some lines like

#include <sys/atomic.h>
...
atomic_add_int_nv()
...
Now, pls help me to find out the Win version of these code segments.

Thanks,
Amit

grumpier Dec 31st, 2008 8:09 am
Re: Win version for atomic.h
 
A starting point for you would be to specify what atomic_add_int_nv() actually does under unix. Forum readers are not mind-readers, and not generally all that good at working out what arbitrarily named non-standard functions do.

If you look up the documentation for atomic_add_int_nv(), you may also be able to work out the answer for yourself.

ArkM Dec 31st, 2008 1:48 pm
Re: Win version for atomic.h
 
Look at
http://www.audiomulch.com/~rossb/code/lockfree/ATOMIC.H

cikara21 Dec 31st, 2008 6:51 pm
Re: Win version for atomic.h
 
....TRY THIS....


All times are GMT -4. The time now is 11:46 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC