1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-26 19:31:45 +02:00

(ia64_script_cache): If HAVE_ATOMIC_OPS_H is true, declare "busy" member

in lieu of "lock" member.

(Logical change 1.124)
This commit is contained in:
hp.com!davidm 2003-11-24 23:53:25 +00:00
parent 629d7d3263
commit d61f300b7b

View file

@ -74,7 +74,11 @@ struct ia64_script
struct ia64_script_cache
{
#ifdef HAVE_ATOMIC_OPS_H
AO_TS_T busy; /* is the script-cache busy? */
#else
pthread_mutex_t lock;
#endif
unsigned short lru_head; /* index of lead-recently used script */
unsigned short lru_tail; /* index of most-recently used script */