Newsgroups: comp.sys.hp.ux,comp.sys.hp.hardware,comp.sys.hp.apps,comp.sys.hp.misc,comp.parallel
From: Kees.Schuerman@ecrc.de (Kees Schuerman)
Subject: Need mutex_try_lock() for HP PA-RISC
Keywords: parallelism synchronization locking
Organization: European Computer-Industry Research Centre GmbH.
Date: Mon, 20 Feb 1995 18:47:45 GMT
Message-ID: <D4BAL9.37A@ecrc.de>

I am currently porting a parallel application to a
machine with PA-RISC processors running the HP-UX OS. 
For this I need an assembly routine implementing
mutex_try_lock() which tries to grab the lock and 
returns 1 if it succeeds and 0 otherwise.

	typedef int mutex_t;

	int mutex_try_lock(mutex_t * m)

Since I am not familiar with the HP assembler nor with the
PA_RISC I am wondering if someone would be willing to donate
such an assembly routine.

Thanks in advance,

Kees 

---
------------------------------------------------------------------------
Kees Schuerman
European Computer-Industry Research Centre      Tel. +49 (89) 926 99 202
Arabellastr 17, D-81925 Munich. Germany.	Fax. +49 (89) 926 99 170
kees@ecrc.de
------------------------------------------------------------------------



