* Is there compare_and_swap()?
@ 2000-07-27 4:00 KIM, HYUNG-IL
2000-07-27 4:00 ` Eckhardt Wallmeroth
0 siblings, 1 reply; 2+ messages in thread
From: KIM, HYUNG-IL @ 2000-07-27 4:00 UTC (permalink / raw)
I've used routine, compare_and_swap() or cs() in AIX that compares two value
and swaps in atomic operation.
Now, I'm about to port AIX application to tru64,
but can't find similar function.
Should I program assambler?
Can anyone help me?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is there compare_and_swap()?
2000-07-27 4:00 Is there compare_and_swap()? KIM, HYUNG-IL
@ 2000-07-27 4:00 ` Eckhardt Wallmeroth
0 siblings, 0 replies; 2+ messages in thread
From: Eckhardt Wallmeroth @ 2000-07-27 4:00 UTC (permalink / raw)
take a look into <machine/builtins.h> or, if none of these is fitting your
needs, look into <c_asm.h> for inline assembly.
Eckhardt
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-07-27 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-27 4:00 Is there compare_and_swap()? KIM, HYUNG-IL
2000-07-27 4:00 ` Eckhardt Wallmeroth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox