• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/timemachine/db-4.7.25.NC/dbinc/

Lines Matching refs:mutex

23 	pthread_mutex_t mutex;		/* Mutex. */			\
37 * includes versions of the both UI and POSIX thread mutex interfaces, but
58 lwp_mutex_t mutex; /* Mutex. */ \
70 mutex_t mutex; /* Mutex. */ \
114 * locking subsystem, where we set up a mutex so that we can block ourselves.
264 * when we initialize the mutex.
366 * Unset mutex. Judging by Alpha Architecture Handbook, the mb instruction
480 * 'reservation' on a chunk of memory containing a mutex by loading the
481 * mutex value with LWARX. If the mutex has an 'unlocked' (arbitrary)
484 * mutex, then the STCWX succeeds; otherwise it fails and you try to get
488 * entire cache line, normally 32 bytes, aligned naturally. If the mutex
492 * beating on a variable in the same cache block as the mutex while another
493 * processor tries to acquire the mutex. That's bad news regardless
495 * mutex will reside in a relatively quiescent cache line, you might
496 * consider padding the mutex to force it to live in a cache line by
502 * If mutex locking is a bottleneck, then you can speed it up by adding a
504 * common case of a locked mutex without wasting cycles making a reservation.
755 * to return reasonable alignment, all other mutex users must ensure proper
771 * The mutex manager encapsulates the mutex system.
778 void *mutex_array; /* Base of the mutex array */
781 /* Macros to lock/unlock the mutex region as a whole. */
791 * The primary mutex data structure in the shared memory region.
795 roff_t mutex_off_alloc;/* Offset of mutex array */
796 roff_t mutex_off; /* Adjusted offset of mutex array */
797 size_t mutex_size; /* Size of the aligned mutex */
800 db_mutex_t mtx_region; /* Region mutex. */
802 /* Protected using the region mutex. */
803 u_int32_t mutex_next; /* Next free mutex */
810 MUTEX_FIELDS /* Opaque thread mutex structures. */
819 pid_t pid; /* Process owning mutex */
820 db_threadid_t tid; /* Thread owning mutex */
836 * is expensive, and the mutex structure is a MP hot spot.
841 /* Macro to get a reference to a specific mutex. */