Thomas Lockhart <[EMAIL PROTECTED]> writes: > That is not already available from the Irix support code? What we have for IRIX is #if defined(__sgi) /* * SGI IRIX 5 * slock_t is defined as a unsigned long. We use the standard SGI * mutex API. * * The following comment is left for historical reasons, but is probably * not a good idea since the mutex ABI is supported. * * This stuff may be supplemented in the future with Masato Kataoka's MIPS-II * assembly from his NECEWS SVR4 port, but we probably ought to retain this * for the R3000 chips out there. */ #include "mutex.h" #define TAS(lock) (test_and_set(lock,1)) #define S_UNLOCK(lock) (test_then_and(lock,0)) #define S_INIT_LOCK(lock) (test_then_and(lock,0)) #define S_LOCK_FREE(lock) (test_then_add(lock,0) == 0) #endif /* __sgi */ Doesn't look to me like it's likely to work on anything but IRIX ... regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
- [HACKERS] Re: Call for platforms Alexander Klimov
- Re: [HACKERS] Re: Call for platforms Tom Lane
- Re: [HACKERS] Re: Call for platforms Doug McNaught
- Re: [HACKERS] Re: Call for platforms Tom Lane
- Re: [HACKERS] Re: Call for platforms Thomas Lockhart
- Re: [HACKERS] Re: Call for platforms Tom Lane
- Re: [HACKERS] Re: Call for platform... Thomas Lockhart
- Re: [HACKERS] Re: Call for plat... Tom Lane
- Re: [HACKERS] Re: Call for plat... Mathijs Brands
- Re: [HACKERS] Re: Call for plat... Thomas Lockhart
- Regression test on FBSD 3.3 &am... Tom Lane
- Regression test on FBSD 3.3 &am... Mathijs Brands
- Re: Regression test on FBSD 3.3... Tom Lane
- [HACKERS] Re: Regression test o... Thomas Lockhart
- Re: Regression test on FBSD 3.3... Peter Eisentraut
- Re: [HACKERS] MIPS test-and-set Nathan Myers
- Re: [HACKERS] MIPS test-and-set Ian Lance Taylor
- Re: [HACKERS] Re: Call for plat... Justin Clift
- Re: [HACKERS] Re: Call for plat... Mathijs Brands
- Re: [HACKERS] Call for platforms Ryan Kirkpatrick
- Re: [HACKERS] Call for platforms Adriaan Joubert