From: Jeff Denham <jdenham@allaire.com>
Subject: Re: test_and_set function for TRU64
Date: 1999/11/24 [thread overview]
Message-ID: <383C4272.61513F8B@allaire.com> (raw)
In-Reply-To: 3839FD96.BF4D1E8@oodb.syscom.com.tw
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.
prev parent reply other threads:[~1999-11-24 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-23 5:00 test_and_set function for TRU64 Yao-Lu Tsai
1999-11-24 5:00 ` Jeff Denham [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox