kmp_lock.h File Reference

#include <limits.h>
#include <stddef.h>
#include "kmp_os.h"
#include "kmp_debug.h"

Go to the source code of this file.

Data Structures

struct  kmp_base_drdpa_lock
struct  kmp_base_drdpa_lock::kmp_lock_poll
struct  kmp_base_queuing_lock
struct  kmp_base_tas_lock
struct  kmp_base_ticket_lock
struct  kmp_block_of_locks
union  kmp_drdpa_lock
struct  kmp_lock_pool
struct  kmp_lock_table
union  kmp_queuing_lock
union  kmp_tas_lock
union  kmp_ticket_lock
union  kmp_user_lock

Defines

#define INTEL_CRITICAL_SIZE   32
#define KMP_BOOTSTRAP_LOCK_INITIALIZER(lock)   KMP_TICKET_LOCK_INITIALIZER( (lock) )
#define KMP_CHECK_USER_LOCK_INIT()
#define KMP_FSYNC_ACQUIRED(x)   ((void)0)
#define KMP_FSYNC_PREPARE(x)   ((void)0)
#define KMP_GTID_DNE   (-2)
#define kmp_lf_atomic   2
#define kmp_lf_critical_section   1
#define KMP_NESTED_LOCK_HELD   0
#define KMP_NESTED_LOCK_RELEASED   1
#define KMP_PAD(type, sz)   (sizeof(type) + (sz - ((sizeof(type) - 1) % (sz)) - 1))
#define KMP_TAS_LOCK_INITIALIZER(lock)   { { 0, 0 } }
#define KMP_TICKET_LOCK_INITIALIZER(lock)   { { (kmp_ticket_lock_t *) & (lock), NULL, 0, 0, 0, -1 } }
#define OMP_CRITICAL_SIZE   sizeof(void *)
#define OMP_LOCK_T_SIZE   sizeof(void *)
#define OMP_NEST_LOCK_T_SIZE   sizeof(void *)
#define OMPT_SUPPORT   1

Typedefs

typedef struct ident ident_t
typedef struct kmp_base_drdpa_lock kmp_base_drdpa_lock_t
typedef struct
kmp_base_queuing_lock 
kmp_base_queuing_lock_t
typedef struct kmp_base_tas_lock kmp_base_tas_lock_t
typedef struct kmp_base_ticket_lock kmp_base_ticket_lock_t
typedef struct kmp_block_of_locks kmp_block_of_locks_t
typedef kmp_ticket_lock_t kmp_bootstrap_lock_t
typedef union kmp_drdpa_lock kmp_drdpa_lock_t
typedef kmp_uint32 kmp_lock_flags_t
typedef kmp_uint32 kmp_lock_index_t
typedef enum kmp_lock_kind kmp_lock_kind_t
typedef struct kmp_lock_pool kmp_lock_pool_t
typedef kmp_ticket_lock_t kmp_lock_t
typedef struct kmp_lock_table kmp_lock_table_t
typedef union kmp_queuing_lock kmp_queuing_lock_t
typedef union kmp_tas_lock kmp_tas_lock_t
typedef union kmp_ticket_lock kmp_ticket_lock_t
typedef union kmp_user_lockkmp_user_lock_p

Enumerations

enum  kmp_lock_kind {
  lk_default = 0, lk_tas, lk_ticket, lk_queuing,
  lk_drdpa
}

Functions

void __kmp_acquire_bootstrap_lock (kmp_bootstrap_lock_t *lck)
void __kmp_acquire_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_lock (kmp_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_nested_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_nested_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_nested_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_nested_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_nested_user_lock_with_checks (kmp_user_lock_p lck, kmp_int32 gtid)
void __kmp_acquire_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_user_lock_with_checks (kmp_user_lock_p lck, kmp_int32 gtid)
void __kmp_cleanup_user_locks ()
void __kmp_destroy_bootstrap_lock (kmp_bootstrap_lock_t *lck)
void __kmp_destroy_drdpa_lock (kmp_drdpa_lock_t *lck)
void __kmp_destroy_lock (kmp_lock_t *lck)
void __kmp_destroy_nested_drdpa_lock (kmp_drdpa_lock_t *lck)
void __kmp_destroy_nested_queuing_lock (kmp_queuing_lock_t *lck)
void __kmp_destroy_nested_tas_lock (kmp_tas_lock_t *lck)
void __kmp_destroy_nested_ticket_lock (kmp_ticket_lock_t *lck)
void __kmp_destroy_nested_user_lock_with_checks (kmp_user_lock_p lck)
void __kmp_destroy_queuing_lock (kmp_queuing_lock_t *lck)
void __kmp_destroy_tas_lock (kmp_tas_lock_t *lck)
void __kmp_destroy_ticket_lock (kmp_ticket_lock_t *lck)
void __kmp_destroy_user_lock (kmp_user_lock_p lck)
void __kmp_destroy_user_lock_with_checks (kmp_user_lock_p lck)
const ident_t__kmp_get_user_lock_location (kmp_user_lock_p lck)
kmp_int32 __kmp_get_user_lock_owner (kmp_user_lock_p lck)
void __kmp_init_bootstrap_lock (kmp_bootstrap_lock_t *lck)
void __kmp_init_drdpa_lock (kmp_drdpa_lock_t *lck)
void __kmp_init_lock (kmp_lock_t *lck)
void __kmp_init_nested_drdpa_lock (kmp_drdpa_lock_t *lck)
void __kmp_init_nested_queuing_lock (kmp_queuing_lock_t *lck)
void __kmp_init_nested_tas_lock (kmp_tas_lock_t *lck)
void __kmp_init_nested_ticket_lock (kmp_ticket_lock_t *lck)
void __kmp_init_nested_user_lock_with_checks (kmp_user_lock_p lck)
void __kmp_init_queuing_lock (kmp_queuing_lock_t *lck)
void __kmp_init_tas_lock (kmp_tas_lock_t *lck)
void __kmp_init_ticket_lock (kmp_ticket_lock_t *lck)
void __kmp_init_user_lock_with_checks (kmp_user_lock_p lck)
kmp_user_lock_p __kmp_lookup_user_lock (void **user_lock, char const *func)
void __kmp_release_bootstrap_lock (kmp_bootstrap_lock_t *lck)
void __kmp_release_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
void __kmp_release_lock (kmp_lock_t *lck, kmp_int32 gtid)
int __kmp_release_nested_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
int __kmp_release_nested_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
int __kmp_release_nested_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
int __kmp_release_nested_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
int __kmp_release_nested_user_lock_with_checks (kmp_user_lock_p lck, kmp_int32 gtid)
void __kmp_release_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
void __kmp_release_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
void __kmp_release_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
void __kmp_release_user_lock_with_checks (kmp_user_lock_p lck, kmp_int32 gtid)
void __kmp_set_queuing_lock_flags (kmp_queuing_lock_t *lck, kmp_lock_flags_t flags)
void __kmp_set_user_lock_flags (kmp_user_lock_p lck, kmp_lock_flags_t flags)
void __kmp_set_user_lock_location (kmp_user_lock_p lck, const ident_t *loc)
void __kmp_set_user_lock_vptrs (kmp_lock_kind_t user_lock_kind)
int __kmp_test_bootstrap_lock (kmp_bootstrap_lock_t *lck)
int __kmp_test_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
int __kmp_test_lock (kmp_lock_t *lck, kmp_int32 gtid)
int __kmp_test_nested_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
int __kmp_test_nested_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
int __kmp_test_nested_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
int __kmp_test_nested_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
int __kmp_test_nested_user_lock_with_checks (kmp_user_lock_p lck, kmp_int32 gtid)
int __kmp_test_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
int __kmp_test_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
int __kmp_test_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
int __kmp_test_ticket_lock_with_cheks (kmp_ticket_lock_t *lck, kmp_int32 gtid)
int __kmp_test_user_lock_with_checks (kmp_user_lock_p lck, kmp_int32 gtid)
kmp_user_lock_p __kmp_user_lock_allocate (void **user_lock, kmp_int32 gtid, kmp_lock_flags_t flags=0)
void __kmp_user_lock_free (void **user_lock, kmp_int32 gtid, kmp_user_lock_p lck)
void __kmp_validate_locks (void)
 KMP_BUILD_ASSERT (offsetof(kmp_base_queuing_lock_t, tail_id)%8==0)

Variables

void(* __kmp_acquire_nested_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid)
void(* __kmp_acquire_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid)
size_t __kmp_base_user_lock_size
void(* __kmp_destroy_nested_user_lock_with_checks_ )(kmp_user_lock_p lck)
void(* __kmp_destroy_user_lock_ )(kmp_user_lock_p lck)
void(* __kmp_destroy_user_lock_with_checks_ )(kmp_user_lock_p lck)
kmp_lock_flags_t(* __kmp_get_user_lock_flags_ )(kmp_user_lock_p lck)
const ident_t *(* __kmp_get_user_lock_location_ )(kmp_user_lock_p lck)
kmp_int32(* __kmp_get_user_lock_owner_ )(kmp_user_lock_p lck)
void(* __kmp_init_nested_user_lock_with_checks_ )(kmp_user_lock_p lck)
void(* __kmp_init_user_lock_with_checks_ )(kmp_user_lock_p lck)
int(* __kmp_is_user_lock_initialized_ )(kmp_user_lock_p lck)
kmp_block_of_locks_t__kmp_lock_blocks
kmp_user_lock_p __kmp_lock_pool
int __kmp_num_locks_in_block
int(* __kmp_release_nested_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid)
void(* __kmp_release_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid)
void(* __kmp_set_user_lock_flags_ )(kmp_user_lock_p lck, kmp_lock_flags_t flags)
void(* __kmp_set_user_lock_location_ )(kmp_user_lock_p lck, const ident_t *loc)
int(* __kmp_test_nested_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid)
int(* __kmp_test_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid)
kmp_lock_kind_t __kmp_user_lock_kind
size_t __kmp_user_lock_size
kmp_lock_table_t __kmp_user_lock_table

Define Documentation

#define INTEL_CRITICAL_SIZE   32

Definition at line 100 of file kmp_lock.h.

Referenced by __kmp_enter_critical_section_reduce_block().

#define KMP_BOOTSTRAP_LOCK_INITIALIZER ( lock   )     KMP_TICKET_LOCK_INITIALIZER( (lock) )

Definition at line 465 of file kmp_lock.h.

 
#define KMP_CHECK_USER_LOCK_INIT (  ) 
#define KMP_FSYNC_ACQUIRED (  )     ((void)0)

Definition at line 598 of file kmp_lock.h.

#define KMP_FSYNC_PREPARE (  )     ((void)0)

Definition at line 597 of file kmp_lock.h.

#define KMP_GTID_DNE   (-2)

Definition at line 65 of file kmp_lock.h.

#define kmp_lf_atomic   2

Definition at line 108 of file kmp_lock.h.

Referenced by __kmp_init_atomic_lock().

#define kmp_lf_critical_section   1

Definition at line 107 of file kmp_lock.h.

Referenced by __kmp_get_critical_section_ptr().

#define KMP_NESTED_LOCK_HELD   0
#define KMP_NESTED_LOCK_RELEASED   1
#define KMP_PAD ( type,
sz   )     (sizeof(type) + (sz - ((sizeof(type) - 1) % (sz)) - 1))

Definition at line 64 of file kmp_lock.h.

#define KMP_TAS_LOCK_INITIALIZER ( lock   )     { { 0, 0 } }

Definition at line 192 of file kmp_lock.h.

#define KMP_TICKET_LOCK_INITIALIZER ( lock   )     { { (kmp_ticket_lock_t *) & (lock), NULL, 0, 0, 0, -1 } }

Definition at line 294 of file kmp_lock.h.

#define OMP_CRITICAL_SIZE   sizeof(void *)

Definition at line 99 of file kmp_lock.h.

Referenced by __kmpc_critical(), and __kmpc_end_critical().

#define OMP_LOCK_T_SIZE   sizeof(void *)
#define OMP_NEST_LOCK_T_SIZE   sizeof(void *)
#define OMPT_SUPPORT   1

Definition at line 355 of file kmp_lock.h.


Typedef Documentation

typedef struct ident ident_t

Definition at line 70 of file kmp_lock.h.

Definition at line 424 of file kmp_lock.h.

Definition at line 336 of file kmp_lock.h.

Definition at line 177 of file kmp_lock.h.

Definition at line 278 of file kmp_lock.h.

Definition at line 936 of file kmp_lock.h.

Definition at line 463 of file kmp_lock.h.

Definition at line 433 of file kmp_lock.h.

typedef kmp_uint32 kmp_lock_flags_t

Definition at line 105 of file kmp_lock.h.

typedef kmp_uint32 kmp_lock_index_t

Definition at line 113 of file kmp_lock.h.

Definition at line 566 of file kmp_lock.h.

Definition at line 124 of file kmp_lock.h.

Definition at line 510 of file kmp_lock.h.

Definition at line 926 of file kmp_lock.h.

Definition at line 347 of file kmp_lock.h.

Definition at line 186 of file kmp_lock.h.

Definition at line 287 of file kmp_lock.h.

Definition at line 581 of file kmp_lock.h.


Enumeration Type Documentation

Enumerator:
lk_default 
lk_tas 
lk_ticket 
lk_queuing 
lk_drdpa 

Definition at line 555 of file kmp_lock.h.


Function Documentation

void __kmp_acquire_bootstrap_lock ( kmp_bootstrap_lock_t lck  )  [inline]
void __kmp_acquire_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
void __kmp_acquire_lock ( kmp_lock_t lck,
kmp_int32  gtid 
) [inline]
void __kmp_acquire_nested_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
void __kmp_acquire_nested_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)
void __kmp_acquire_nested_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)
void __kmp_acquire_nested_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
void __kmp_acquire_nested_user_lock_with_checks ( kmp_user_lock_p  lck,
kmp_int32  gtid 
) [inline]

Definition at line 761 of file kmp_lock.h.

References __kmp_acquire_nested_user_lock_with_checks_, and KMP_DEBUG_ASSERT.

void __kmp_acquire_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)

Definition at line 1480 of file kmp_lock.cpp.

References KMP_DEBUG_ASSERT.

Referenced by __kmp_acquire_atomic_lock(), and __kmp_acquire_queuing_lock_with_checks().

void __kmp_acquire_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)

Definition at line 182 of file kmp_lock.cpp.

References __kmp_acquire_tas_lock_timed_template().

Referenced by __kmp_acquire_tas_lock_with_checks().

void __kmp_acquire_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
void __kmp_acquire_user_lock_with_checks ( kmp_user_lock_p  lck,
kmp_int32  gtid 
) [inline]
void __kmp_cleanup_user_locks (  ) 
void __kmp_destroy_bootstrap_lock ( kmp_bootstrap_lock_t lck  )  [inline]

Definition at line 492 of file kmp_lock.h.

References __kmp_destroy_ticket_lock().

void __kmp_destroy_drdpa_lock ( kmp_drdpa_lock_t lck  ) 
void __kmp_destroy_lock ( kmp_lock_t lck  )  [inline]

Definition at line 537 of file kmp_lock.h.

References __kmp_destroy_ticket_lock().

Referenced by __kmp_free_taskq().

void __kmp_destroy_nested_drdpa_lock ( kmp_drdpa_lock_t lck  ) 
void __kmp_destroy_nested_queuing_lock ( kmp_queuing_lock_t lck  ) 
void __kmp_destroy_nested_tas_lock ( kmp_tas_lock_t lck  ) 
void __kmp_destroy_nested_ticket_lock ( kmp_ticket_lock_t lck  ) 
void __kmp_destroy_nested_user_lock_with_checks ( kmp_user_lock_p  lck  )  [inline]

Definition at line 827 of file kmp_lock.h.

References __kmp_destroy_nested_user_lock_with_checks_, and KMP_DEBUG_ASSERT.

void __kmp_destroy_queuing_lock ( kmp_queuing_lock_t lck  ) 
void __kmp_destroy_tas_lock ( kmp_tas_lock_t lck  ) 
void __kmp_destroy_ticket_lock ( kmp_ticket_lock_t lck  ) 
void __kmp_destroy_user_lock ( kmp_user_lock_p  lck  )  [inline]

Definition at line 703 of file kmp_lock.h.

References __kmp_destroy_user_lock_, and KMP_DEBUG_ASSERT.

Referenced by __kmp_cleanup_user_locks().

void __kmp_destroy_user_lock_with_checks ( kmp_user_lock_p  lck  )  [inline]

Definition at line 712 of file kmp_lock.h.

References __kmp_destroy_user_lock_with_checks_, and KMP_DEBUG_ASSERT.

Referenced by __kmp_get_critical_section_ptr().

const ident_t* __kmp_get_user_lock_location ( kmp_user_lock_p  lck  )  [inline]

Definition at line 855 of file kmp_lock.h.

References __kmp_get_user_lock_location_.

Referenced by __kmp_cleanup_user_locks().

kmp_int32 __kmp_get_user_lock_owner ( kmp_user_lock_p  lck  )  [inline]

Definition at line 589 of file kmp_lock.h.

References __kmp_get_user_lock_owner_, and KMP_DEBUG_ASSERT.

Referenced by __kmp_check_sync().

void __kmp_init_bootstrap_lock ( kmp_bootstrap_lock_t lck  )  [inline]

Definition at line 486 of file kmp_lock.h.

References __kmp_init_ticket_lock().

Referenced by __kmp_atfork_child(), and __kmp_do_serial_initialize().

void __kmp_init_drdpa_lock ( kmp_drdpa_lock_t lck  ) 
void __kmp_init_lock ( kmp_lock_t lck  )  [inline]
void __kmp_init_nested_drdpa_lock ( kmp_drdpa_lock_t lck  ) 
void __kmp_init_nested_queuing_lock ( kmp_queuing_lock_t lck  ) 
void __kmp_init_nested_tas_lock ( kmp_tas_lock_t lck  ) 
void __kmp_init_nested_ticket_lock ( kmp_ticket_lock_t lck  ) 
void __kmp_init_nested_user_lock_with_checks ( kmp_user_lock_p  lck  )  [inline]

Definition at line 818 of file kmp_lock.h.

References __kmp_init_nested_user_lock_with_checks_, and KMP_DEBUG_ASSERT.

void __kmp_init_queuing_lock ( kmp_queuing_lock_t lck  ) 
void __kmp_init_tas_lock ( kmp_tas_lock_t lck  ) 
void __kmp_init_ticket_lock ( kmp_ticket_lock_t lck  ) 
void __kmp_init_user_lock_with_checks ( kmp_user_lock_p  lck  )  [inline]

Definition at line 690 of file kmp_lock.h.

References __kmp_init_user_lock_with_checks_, and KMP_DEBUG_ASSERT.

Referenced by __kmp_get_critical_section_ptr().

kmp_user_lock_p __kmp_lookup_user_lock ( void **  user_lock,
char const *  func 
)
void __kmp_release_bootstrap_lock ( kmp_bootstrap_lock_t lck  )  [inline]
void __kmp_release_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
void __kmp_release_lock ( kmp_lock_t lck,
kmp_int32  gtid 
) [inline]
int __kmp_release_nested_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
int __kmp_release_nested_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)
int __kmp_release_nested_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)
int __kmp_release_nested_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
int __kmp_release_nested_user_lock_with_checks ( kmp_user_lock_p  lck,
kmp_int32  gtid 
) [inline]

Definition at line 810 of file kmp_lock.h.

References __kmp_release_nested_user_lock_with_checks_, and KMP_DEBUG_ASSERT.

void __kmp_release_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)
void __kmp_release_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)
void __kmp_release_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
void __kmp_release_user_lock_with_checks ( kmp_user_lock_p  lck,
kmp_int32  gtid 
) [inline]
void __kmp_set_queuing_lock_flags ( kmp_queuing_lock_t lck,
kmp_lock_flags_t  flags 
)
void __kmp_set_user_lock_flags ( kmp_user_lock_p  lck,
kmp_lock_flags_t  flags 
) [inline]

Definition at line 880 of file kmp_lock.h.

References __kmp_set_user_lock_flags_.

Referenced by __kmp_user_lock_allocate().

void __kmp_set_user_lock_location ( kmp_user_lock_p  lck,
const ident_t loc 
) [inline]
void __kmp_set_user_lock_vptrs ( kmp_lock_kind_t  user_lock_kind  ) 

Definition at line 2552 of file kmp_lock.cpp.

References __kmp_acquire_drdpa_lock_with_checks(), __kmp_acquire_nested_drdpa_lock_with_checks(), __kmp_acquire_nested_queuing_lock_with_checks(), __kmp_acquire_nested_tas_lock_with_checks(), __kmp_acquire_nested_ticket_lock_with_checks(), __kmp_acquire_nested_user_lock_with_checks_, __kmp_acquire_queuing_lock_with_checks(), __kmp_acquire_tas_lock_with_checks(), __kmp_acquire_ticket_lock_with_checks(), __kmp_acquire_user_lock_with_checks_, __kmp_destroy_drdpa_lock(), __kmp_destroy_drdpa_lock_with_checks(), __kmp_destroy_nested_drdpa_lock_with_checks(), __kmp_destroy_nested_queuing_lock_with_checks(), __kmp_destroy_nested_tas_lock_with_checks(), __kmp_destroy_nested_ticket_lock_with_checks(), __kmp_destroy_nested_user_lock_with_checks_, __kmp_destroy_queuing_lock(), __kmp_destroy_queuing_lock_with_checks(), __kmp_destroy_tas_lock(), __kmp_destroy_tas_lock_with_checks(), __kmp_destroy_ticket_lock(), __kmp_destroy_ticket_lock_with_checks(), __kmp_destroy_user_lock_, __kmp_destroy_user_lock_with_checks_, __kmp_get_drdpa_lock_flags(), __kmp_get_drdpa_lock_location(), __kmp_get_drdpa_lock_owner(), __kmp_get_queuing_lock_flags(), __kmp_get_queuing_lock_location(), __kmp_get_queuing_lock_owner(), __kmp_get_tas_lock_owner(), __kmp_get_ticket_lock_flags(), __kmp_get_ticket_lock_location(), __kmp_get_ticket_lock_owner(), __kmp_get_user_lock_flags_, __kmp_get_user_lock_location_, __kmp_get_user_lock_owner_, __kmp_init_drdpa_lock_with_checks(), __kmp_init_nested_drdpa_lock_with_checks(), __kmp_init_nested_queuing_lock_with_checks(), __kmp_init_nested_tas_lock_with_checks(), __kmp_init_nested_ticket_lock_with_checks(), __kmp_init_nested_user_lock_with_checks_, __kmp_init_queuing_lock_with_checks(), __kmp_init_tas_lock_with_checks(), __kmp_init_ticket_lock_with_checks(), __kmp_init_user_lock_with_checks_, __kmp_is_drdpa_lock_initialized(), __kmp_is_queuing_lock_initialized(), __kmp_is_ticket_lock_initialized(), __kmp_is_user_lock_initialized_, __kmp_release_drdpa_lock_with_checks(), __kmp_release_nested_drdpa_lock_with_checks(), __kmp_release_nested_queuing_lock_with_checks(), __kmp_release_nested_tas_lock_with_checks(), __kmp_release_nested_ticket_lock_with_checks(), __kmp_release_nested_user_lock_with_checks_, __kmp_release_queuing_lock_with_checks(), __kmp_release_tas_lock_with_checks(), __kmp_release_ticket_lock_with_checks(), __kmp_release_user_lock_with_checks_, __kmp_set_drdpa_lock_flags(), __kmp_set_drdpa_lock_location(), __kmp_set_queuing_lock_flags(), __kmp_set_queuing_lock_location(), __kmp_set_ticket_lock_flags(), __kmp_set_ticket_lock_location(), __kmp_set_user_lock_flags_, __kmp_set_user_lock_location_, __kmp_test_drdpa_lock_with_checks(), __kmp_test_nested_drdpa_lock_with_checks(), __kmp_test_nested_queuing_lock_with_checks(), __kmp_test_nested_tas_lock_with_checks(), __kmp_test_nested_ticket_lock_with_checks(), __kmp_test_nested_user_lock_with_checks_, __kmp_test_queuing_lock_with_checks(), __kmp_test_tas_lock_with_checks(), __kmp_test_ticket_lock_with_checks(), __kmp_test_user_lock_with_checks_, KMP_ASSERT, lk_default, lk_drdpa, lk_queuing, lk_tas, and lk_ticket.

Referenced by __kmp_env_initialize().

int __kmp_test_bootstrap_lock ( kmp_bootstrap_lock_t lck  )  [inline]

Definition at line 474 of file kmp_lock.h.

References __kmp_test_ticket_lock(), and KMP_GTID_DNE.

int __kmp_test_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
int __kmp_test_lock ( kmp_lock_t lck,
kmp_int32  gtid 
) [inline]

Definition at line 519 of file kmp_lock.h.

References __kmp_test_ticket_lock().

Referenced by __kmp_find_and_remove_finished_child_taskq().

int __kmp_test_nested_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
int __kmp_test_nested_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)
int __kmp_test_nested_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)
int __kmp_test_nested_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
int __kmp_test_nested_user_lock_with_checks ( kmp_user_lock_p  lck,
kmp_int32  gtid 
) [inline]

Definition at line 800 of file kmp_lock.h.

References __kmp_test_nested_user_lock_with_checks_, and KMP_DEBUG_ASSERT.

int __kmp_test_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)
int __kmp_test_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)
int __kmp_test_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
int __kmp_test_ticket_lock_with_cheks ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
int __kmp_test_user_lock_with_checks ( kmp_user_lock_p  lck,
kmp_int32  gtid 
) [inline]

Definition at line 671 of file kmp_lock.h.

References __kmp_test_user_lock_with_checks_, and KMP_DEBUG_ASSERT.

kmp_user_lock_p __kmp_user_lock_allocate ( void **  user_lock,
kmp_int32  gtid,
kmp_lock_flags_t  flags = 0 
)
void __kmp_user_lock_free ( void **  user_lock,
kmp_int32  gtid,
kmp_user_lock_p  lck 
)
void __kmp_validate_locks ( void   ) 

Definition at line 97 of file kmp_lock.cpp.

References i, and KMP_ASSERT.

Referenced by __kmp_do_serial_initialize().

KMP_BUILD_ASSERT ( offsetof(kmp_base_queuing_lock_t, tail_id)%  8 = =0  ) 

Variable Documentation

Definition at line 2933 of file kmp_lock.cpp.

Referenced by __kmp_atfork_child().

Definition at line 2930 of file kmp_lock.cpp.

Definition at line 2934 of file kmp_lock.cpp.

Referenced by __kmp_stg_parse_lock_block(), and __kmp_stg_print_lock_block().

int( * __kmp_test_user_lock_with_checks_)(kmp_user_lock_p lck, kmp_int32 gtid)

Definition at line 2529 of file kmp_lock.cpp.

Definition at line 2929 of file kmp_lock.cpp.

Referenced by __kmp_atfork_child().


Generated on 25 Aug 2013 for libomp_oss by  doxygen 1.6.1