* test_and_set function for TRU64
@ 1999-11-23 5:00 Yao-Lu Tsai
1999-11-24 5:00 ` Jeff Denham
0 siblings, 1 reply; 2+ messages in thread
From: Yao-Lu Tsai @ 1999-11-23 5:00 UTC (permalink / raw)
Dear all,
I need to implement a critical section on TRU64 UNIX.
Is there any function or system call like test_and_set
or compare_and_swap on TRU64 UNIX ?
Thanks.
--
+--------------------------------+---------------------------------+
| Yao-Lu Tsai | Project Manager at OODB Team, |
| (H) 886-2-2746-5471 | Syscom Computer CO., Taiwan. |
| ytsai@oodb.syscom.com.tw | (O) 886-2-2741-8010 EXT 8857 |
| http://www.dbmaker.com.tw | (FAX) 886-2-731-3913 |
+--------------------------------+---------------------------------+
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: test_and_set function for TRU64
1999-11-23 5:00 test_and_set function for TRU64 Yao-Lu Tsai
@ 1999-11-24 5:00 ` Jeff Denham
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Denham @ 1999-11-24 5:00 UTC (permalink / raw)
Yao-Lu Tsai wrote:
> Dear all,
>
> I need to implement a critical section on TRU64 UNIX.
> Is there any function or system call like test_and_set
> or compare_and_swap on TRU64 UNIX ?
There's an undocumented routine in the C RTL called
msem_tas() or some such. Do an nm on the library
and grep for 'tas'.
Also, if you're using threads, consider using a mutex.
If you're not using threads, you can do what you want with
the load-locked/store-conditional instructions. Grap
around in /usr/include and look for asm directives
you can clone.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-11-24 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-23 5:00 test_and_set function for TRU64 Yao-Lu Tsai
1999-11-24 5:00 ` Jeff Denham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox