kmp_lock.cpp File Reference

#include <stddef.h>
#include "kmp.h"
#include "kmp_i18n.h"
#include "kmp_lock.h"
#include "kmp_io.h"

Go to the source code of this file.

Defines

#define __kmp_static_delay(arg)
#define IS_CRITICAL(lck)

Functions

void __kmp_acquire_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
static __forceinline void __kmp_acquire_drdpa_lock_timed_template (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
static void __kmp_acquire_drdpa_lock_with_checks (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_nested_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
static void __kmp_acquire_nested_drdpa_lock_with_checks (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_nested_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
static void __kmp_acquire_nested_queuing_lock_with_checks (kmp_queuing_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_nested_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
static void __kmp_acquire_nested_tas_lock_with_checks (kmp_tas_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_nested_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
static void __kmp_acquire_nested_ticket_lock_with_checks (kmp_ticket_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
template<bool takeTime>
static __forceinline void __kmp_acquire_queuing_lock_timed_template (kmp_queuing_lock_t *lck, kmp_int32 gtid)
static void __kmp_acquire_queuing_lock_with_checks (kmp_queuing_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
static __forceinline void __kmp_acquire_tas_lock_timed_template (kmp_tas_lock_t *lck, kmp_int32 gtid)
static void __kmp_acquire_tas_lock_with_checks (kmp_tas_lock_t *lck, kmp_int32 gtid)
void __kmp_acquire_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
static __forceinline void __kmp_acquire_ticket_lock_timed_template (kmp_ticket_lock_t *lck, kmp_int32 gtid)
static void __kmp_acquire_ticket_lock_with_checks (kmp_ticket_lock_t *lck, kmp_int32 gtid)
static kmp_uint32 __kmp_bakery_check (kmp_uint value, kmp_uint checker)
void __kmp_cleanup_user_locks (void)
void __kmp_destroy_drdpa_lock (kmp_drdpa_lock_t *lck)
static void __kmp_destroy_drdpa_lock_with_checks (kmp_drdpa_lock_t *lck)
void __kmp_destroy_nested_drdpa_lock (kmp_drdpa_lock_t *lck)
static void __kmp_destroy_nested_drdpa_lock_with_checks (kmp_drdpa_lock_t *lck)
void __kmp_destroy_nested_queuing_lock (kmp_queuing_lock_t *lck)
static void __kmp_destroy_nested_queuing_lock_with_checks (kmp_queuing_lock_t *lck)
void __kmp_destroy_nested_tas_lock (kmp_tas_lock_t *lck)
static void __kmp_destroy_nested_tas_lock_with_checks (kmp_tas_lock_t *lck)
void __kmp_destroy_nested_ticket_lock (kmp_ticket_lock_t *lck)
static void __kmp_destroy_nested_ticket_lock_with_checks (kmp_ticket_lock_t *lck)
void __kmp_destroy_queuing_lock (kmp_queuing_lock_t *lck)
static void __kmp_destroy_queuing_lock_with_checks (kmp_queuing_lock_t *lck)
void __kmp_destroy_tas_lock (kmp_tas_lock_t *lck)
static void __kmp_destroy_tas_lock_with_checks (kmp_tas_lock_t *lck)
void __kmp_destroy_ticket_lock (kmp_ticket_lock_t *lck)
static void __kmp_destroy_ticket_lock_with_checks (kmp_ticket_lock_t *lck)
static kmp_lock_flags_t __kmp_get_drdpa_lock_flags (kmp_drdpa_lock_t *lck)
static const ident_t__kmp_get_drdpa_lock_location (kmp_drdpa_lock_t *lck)
static kmp_int32 __kmp_get_drdpa_lock_owner (kmp_drdpa_lock_t *lck)
static kmp_lock_flags_t __kmp_get_queuing_lock_flags (kmp_queuing_lock_t *lck)
static const ident_t__kmp_get_queuing_lock_location (kmp_queuing_lock_t *lck)
static kmp_int32 __kmp_get_queuing_lock_owner (kmp_queuing_lock_t *lck)
static kmp_int32 __kmp_get_tas_lock_owner (kmp_tas_lock_t *lck)
static kmp_lock_flags_t __kmp_get_ticket_lock_flags (kmp_ticket_lock_t *lck)
static const ident_t__kmp_get_ticket_lock_location (kmp_ticket_lock_t *lck)
static kmp_int32 __kmp_get_ticket_lock_owner (kmp_ticket_lock_t *lck)
void __kmp_init_drdpa_lock (kmp_drdpa_lock_t *lck)
static void __kmp_init_drdpa_lock_with_checks (kmp_drdpa_lock_t *lck)
void __kmp_init_nested_drdpa_lock (kmp_drdpa_lock_t *lck)
static void __kmp_init_nested_drdpa_lock_with_checks (kmp_drdpa_lock_t *lck)
void __kmp_init_nested_queuing_lock (kmp_queuing_lock_t *lck)
static void __kmp_init_nested_queuing_lock_with_checks (kmp_queuing_lock_t *lck)
void __kmp_init_nested_tas_lock (kmp_tas_lock_t *lck)
static void __kmp_init_nested_tas_lock_with_checks (kmp_tas_lock_t *lck)
void __kmp_init_nested_ticket_lock (kmp_ticket_lock_t *lck)
static void __kmp_init_nested_ticket_lock_with_checks (kmp_ticket_lock_t *lck)
void __kmp_init_queuing_lock (kmp_queuing_lock_t *lck)
static void __kmp_init_queuing_lock_with_checks (kmp_queuing_lock_t *lck)
void __kmp_init_tas_lock (kmp_tas_lock_t *lck)
static void __kmp_init_tas_lock_with_checks (kmp_tas_lock_t *lck)
void __kmp_init_ticket_lock (kmp_ticket_lock_t *lck)
static void __kmp_init_ticket_lock_with_checks (kmp_ticket_lock_t *lck)
static int __kmp_is_drdpa_lock_initialized (kmp_drdpa_lock_t *lck)
static bool __kmp_is_drdpa_lock_nestable (kmp_drdpa_lock_t *lck)
static int __kmp_is_queuing_lock_initialized (kmp_queuing_lock_t *lck)
static bool __kmp_is_queuing_lock_nestable (kmp_queuing_lock_t *lck)
static bool __kmp_is_tas_lock_nestable (kmp_tas_lock_t *lck)
static int __kmp_is_ticket_lock_initialized (kmp_ticket_lock_t *lck)
static bool __kmp_is_ticket_lock_nestable (kmp_ticket_lock_t *lck)
static kmp_user_lock_p __kmp_lock_block_allocate ()
static kmp_lock_index_t __kmp_lock_table_insert (kmp_user_lock_p lck)
kmp_user_lock_p __kmp_lookup_user_lock (void **user_lock, char const *func)
void __kmp_release_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
static void __kmp_release_drdpa_lock_with_checks (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
int __kmp_release_nested_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
static int __kmp_release_nested_drdpa_lock_with_checks (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
int __kmp_release_nested_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
static int __kmp_release_nested_queuing_lock_with_checks (kmp_queuing_lock_t *lck, kmp_int32 gtid)
int __kmp_release_nested_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
static int __kmp_release_nested_tas_lock_with_checks (kmp_tas_lock_t *lck, kmp_int32 gtid)
int __kmp_release_nested_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
static int __kmp_release_nested_ticket_lock_with_checks (kmp_ticket_lock_t *lck, kmp_int32 gtid)
void __kmp_release_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
static void __kmp_release_queuing_lock_with_checks (kmp_queuing_lock_t *lck, kmp_int32 gtid)
void __kmp_release_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
static void __kmp_release_tas_lock_with_checks (kmp_tas_lock_t *lck, kmp_int32 gtid)
void __kmp_release_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
static void __kmp_release_ticket_lock_with_checks (kmp_ticket_lock_t *lck, kmp_int32 gtid)
static void __kmp_set_drdpa_lock_flags (kmp_drdpa_lock_t *lck, kmp_lock_flags_t flags)
static void __kmp_set_drdpa_lock_location (kmp_drdpa_lock_t *lck, const ident_t *loc)
void __kmp_set_queuing_lock_flags (kmp_queuing_lock_t *lck, kmp_lock_flags_t flags)
static void __kmp_set_queuing_lock_location (kmp_queuing_lock_t *lck, const ident_t *loc)
static void __kmp_set_ticket_lock_flags (kmp_ticket_lock_t *lck, kmp_lock_flags_t flags)
static void __kmp_set_ticket_lock_location (kmp_ticket_lock_t *lck, const ident_t *loc)
void __kmp_set_user_lock_vptrs (kmp_lock_kind_t user_lock_kind)
static void __kmp_static_yield (int arg)
int __kmp_test_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
static int __kmp_test_drdpa_lock_with_checks (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
int __kmp_test_nested_drdpa_lock (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
static int __kmp_test_nested_drdpa_lock_with_checks (kmp_drdpa_lock_t *lck, kmp_int32 gtid)
int __kmp_test_nested_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
static int __kmp_test_nested_queuing_lock_with_checks (kmp_queuing_lock_t *lck, kmp_int32 gtid)
int __kmp_test_nested_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
static int __kmp_test_nested_tas_lock_with_checks (kmp_tas_lock_t *lck, kmp_int32 gtid)
int __kmp_test_nested_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
static int __kmp_test_nested_ticket_lock_with_checks (kmp_ticket_lock_t *lck, kmp_int32 gtid)
int __kmp_test_queuing_lock (kmp_queuing_lock_t *lck, kmp_int32 gtid)
static int __kmp_test_queuing_lock_with_checks (kmp_queuing_lock_t *lck, kmp_int32 gtid)
int __kmp_test_tas_lock (kmp_tas_lock_t *lck, kmp_int32 gtid)
static int __kmp_test_tas_lock_with_checks (kmp_tas_lock_t *lck, kmp_int32 gtid)
int __kmp_test_ticket_lock (kmp_ticket_lock_t *lck, kmp_int32 gtid)
static int __kmp_test_ticket_lock_with_checks (kmp_ticket_lock_t *lck, kmp_int32 gtid)
kmp_user_lock_p __kmp_user_lock_allocate (void **user_lock, kmp_int32 gtid, kmp_lock_flags_t flags)
void __kmp_user_lock_free (void **user_lock, kmp_int32 gtid, kmp_user_lock_p lck)
void __kmp_validate_locks (void)

Variables

void(* __kmp_acquire_nested_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
void(* __kmp_acquire_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
size_t __kmp_base_user_lock_size = 0
void(* __kmp_destroy_nested_user_lock_with_checks_ )(kmp_user_lock_p lck) = NULL
void(* __kmp_destroy_user_lock_ )(kmp_user_lock_p lck) = NULL
void(* __kmp_destroy_user_lock_with_checks_ )(kmp_user_lock_p lck) = NULL
kmp_lock_flags_t(* __kmp_get_user_lock_flags_ )(kmp_user_lock_p lck) = NULL
const ident_t *(* __kmp_get_user_lock_location_ )(kmp_user_lock_p lck) = NULL
kmp_int32(* __kmp_get_user_lock_owner_ )(kmp_user_lock_p lck) = NULL
void(* __kmp_init_nested_user_lock_with_checks_ )(kmp_user_lock_p lck) = NULL
void(* __kmp_init_user_lock_with_checks_ )(kmp_user_lock_p lck) = NULL
int(* __kmp_is_user_lock_initialized_ )(kmp_user_lock_p lck) = NULL
kmp_block_of_locks__kmp_lock_blocks = NULL
kmp_user_lock_p __kmp_lock_pool = NULL
int __kmp_num_locks_in_block = 1
int(* __kmp_release_nested_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
void(* __kmp_release_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
void(* __kmp_set_user_lock_flags_ )(kmp_user_lock_p lck, kmp_lock_flags_t flags) = NULL
void(* __kmp_set_user_lock_location_ )(kmp_user_lock_p lck, const ident_t *loc) = NULL
int(* __kmp_test_nested_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
int(* __kmp_test_user_lock_with_checks_ )(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
enum kmp_lock_kind __kmp_user_lock_kind = lk_default
size_t __kmp_user_lock_size = 0
kmp_lock_table_t __kmp_user_lock_table = { 1, 0, NULL }

Define Documentation

#define __kmp_static_delay ( arg   ) 
#define IS_CRITICAL ( lck   ) 

Function Documentation

void __kmp_acquire_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
static __forceinline void __kmp_acquire_drdpa_lock_timed_template ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
) [static]
static void __kmp_acquire_drdpa_lock_with_checks ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
) [static]
void __kmp_acquire_nested_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
static void __kmp_acquire_nested_drdpa_lock_with_checks ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
) [static]
void __kmp_acquire_nested_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)
static void __kmp_acquire_nested_queuing_lock_with_checks ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
) [static]
void __kmp_acquire_nested_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)
static void __kmp_acquire_nested_tas_lock_with_checks ( kmp_tas_lock_t lck,
kmp_int32  gtid 
) [static]
void __kmp_acquire_nested_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
static void __kmp_acquire_nested_ticket_lock_with_checks ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
) [static]
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().

template<bool takeTime>
static __forceinline void __kmp_acquire_queuing_lock_timed_template ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
) [inline, static]
static void __kmp_acquire_queuing_lock_with_checks ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
) [static]
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().

static __forceinline void __kmp_acquire_tas_lock_timed_template ( kmp_tas_lock_t lck,
kmp_int32  gtid 
) [static]
static void __kmp_acquire_tas_lock_with_checks ( kmp_tas_lock_t lck,
kmp_int32  gtid 
) [static]
void __kmp_acquire_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
static __forceinline void __kmp_acquire_ticket_lock_timed_template ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
) [static]
static void __kmp_acquire_ticket_lock_with_checks ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
) [static]
static kmp_uint32 __kmp_bakery_check ( kmp_uint  value,
kmp_uint  checker 
) [static]

Definition at line 797 of file kmp_lock.cpp.

References __kmp_static_delay, FALSE, and TRUE.

Referenced by __kmp_acquire_ticket_lock_timed_template().

void __kmp_cleanup_user_locks ( void   ) 
void __kmp_destroy_drdpa_lock ( kmp_drdpa_lock_t lck  ) 
static void __kmp_destroy_drdpa_lock_with_checks ( kmp_drdpa_lock_t lck  )  [static]
void __kmp_destroy_nested_drdpa_lock ( kmp_drdpa_lock_t lck  ) 
static void __kmp_destroy_nested_drdpa_lock_with_checks ( kmp_drdpa_lock_t lck  )  [static]
void __kmp_destroy_nested_queuing_lock ( kmp_queuing_lock_t lck  ) 
static void __kmp_destroy_nested_queuing_lock_with_checks ( kmp_queuing_lock_t lck  )  [static]
void __kmp_destroy_nested_tas_lock ( kmp_tas_lock_t lck  ) 
static void __kmp_destroy_nested_tas_lock_with_checks ( kmp_tas_lock_t lck  )  [static]
void __kmp_destroy_nested_ticket_lock ( kmp_ticket_lock_t lck  ) 
static void __kmp_destroy_nested_ticket_lock_with_checks ( kmp_ticket_lock_t lck  )  [static]
void __kmp_destroy_queuing_lock ( kmp_queuing_lock_t lck  ) 
static void __kmp_destroy_queuing_lock_with_checks ( kmp_queuing_lock_t lck  )  [static]
void __kmp_destroy_tas_lock ( kmp_tas_lock_t lck  ) 
static void __kmp_destroy_tas_lock_with_checks ( kmp_tas_lock_t lck  )  [static]
void __kmp_destroy_ticket_lock ( kmp_ticket_lock_t lck  ) 
static void __kmp_destroy_ticket_lock_with_checks ( kmp_ticket_lock_t lck  )  [static]
static kmp_lock_flags_t __kmp_get_drdpa_lock_flags ( kmp_drdpa_lock_t lck  )  [static]

Definition at line 2508 of file kmp_lock.cpp.

References kmp_base_drdpa_lock::flags, and kmp_drdpa_lock::lk.

Referenced by __kmp_set_user_lock_vptrs().

static const ident_t* __kmp_get_drdpa_lock_location ( kmp_drdpa_lock_t lck  )  [static]

Definition at line 2496 of file kmp_lock.cpp.

References kmp_drdpa_lock::lk, and kmp_base_drdpa_lock::location.

Referenced by __kmp_set_user_lock_vptrs().

static kmp_int32 __kmp_get_drdpa_lock_owner ( kmp_drdpa_lock_t lck  )  [static]
static kmp_lock_flags_t __kmp_get_queuing_lock_flags ( kmp_queuing_lock_t lck  )  [static]

Definition at line 1951 of file kmp_lock.cpp.

References kmp_base_queuing_lock::flags, and kmp_queuing_lock::lk.

Referenced by __kmp_set_user_lock_vptrs().

static const ident_t* __kmp_get_queuing_lock_location ( kmp_queuing_lock_t lck  )  [static]

Definition at line 1939 of file kmp_lock.cpp.

References kmp_queuing_lock::lk, and kmp_base_queuing_lock::location.

Referenced by __kmp_set_user_lock_vptrs().

static kmp_int32 __kmp_get_queuing_lock_owner ( kmp_queuing_lock_t lck  )  [static]
static kmp_int32 __kmp_get_tas_lock_owner ( kmp_tas_lock_t lck  )  [static]
static kmp_lock_flags_t __kmp_get_ticket_lock_flags ( kmp_ticket_lock_t lck  )  [static]

Definition at line 1155 of file kmp_lock.cpp.

References kmp_base_ticket_lock::flags, and kmp_ticket_lock::lk.

Referenced by __kmp_set_user_lock_vptrs().

static const ident_t* __kmp_get_ticket_lock_location ( kmp_ticket_lock_t lck  )  [static]

Definition at line 1143 of file kmp_lock.cpp.

References kmp_ticket_lock::lk, and kmp_base_ticket_lock::location.

Referenced by __kmp_set_user_lock_vptrs().

static kmp_int32 __kmp_get_ticket_lock_owner ( kmp_ticket_lock_t lck  )  [static]
void __kmp_init_drdpa_lock ( kmp_drdpa_lock_t lck  ) 
static void __kmp_init_drdpa_lock_with_checks ( kmp_drdpa_lock_t lck  )  [static]

Definition at line 2290 of file kmp_lock.cpp.

References __kmp_init_drdpa_lock().

Referenced by __kmp_set_user_lock_vptrs().

void __kmp_init_nested_drdpa_lock ( kmp_drdpa_lock_t lck  ) 
static void __kmp_init_nested_drdpa_lock_with_checks ( kmp_drdpa_lock_t lck  )  [static]

Definition at line 2454 of file kmp_lock.cpp.

References __kmp_init_nested_drdpa_lock().

Referenced by __kmp_set_user_lock_vptrs().

void __kmp_init_nested_queuing_lock ( kmp_queuing_lock_t lck  ) 
static void __kmp_init_nested_queuing_lock_with_checks ( kmp_queuing_lock_t lck  )  [static]

Definition at line 1897 of file kmp_lock.cpp.

References __kmp_init_nested_queuing_lock().

Referenced by __kmp_set_user_lock_vptrs().

void __kmp_init_nested_tas_lock ( kmp_tas_lock_t lck  ) 
static void __kmp_init_nested_tas_lock_with_checks ( kmp_tas_lock_t lck  )  [static]

Definition at line 396 of file kmp_lock.cpp.

References __kmp_init_nested_tas_lock().

Referenced by __kmp_set_user_lock_vptrs().

void __kmp_init_nested_ticket_lock ( kmp_ticket_lock_t lck  ) 
static void __kmp_init_nested_ticket_lock_with_checks ( kmp_ticket_lock_t lck  )  [static]

Definition at line 1101 of file kmp_lock.cpp.

References __kmp_init_nested_ticket_lock().

Referenced by __kmp_set_user_lock_vptrs().

void __kmp_init_queuing_lock ( kmp_queuing_lock_t lck  ) 
static void __kmp_init_queuing_lock_with_checks ( kmp_queuing_lock_t lck  )  [static]

Definition at line 1741 of file kmp_lock.cpp.

References __kmp_init_queuing_lock().

Referenced by __kmp_set_user_lock_vptrs().

void __kmp_init_tas_lock ( kmp_tas_lock_t lck  ) 
static void __kmp_init_tas_lock_with_checks ( kmp_tas_lock_t lck  )  [static]

Definition at line 266 of file kmp_lock.cpp.

References __kmp_init_tas_lock().

Referenced by __kmp_set_user_lock_vptrs().

void __kmp_init_ticket_lock ( kmp_ticket_lock_t lck  ) 
static void __kmp_init_ticket_lock_with_checks ( kmp_ticket_lock_t lck  )  [static]

Definition at line 947 of file kmp_lock.cpp.

References __kmp_init_ticket_lock().

Referenced by __kmp_set_user_lock_vptrs().

static int __kmp_is_drdpa_lock_initialized ( kmp_drdpa_lock_t lck  )  [static]

Definition at line 2490 of file kmp_lock.cpp.

References kmp_base_drdpa_lock::initialized, and kmp_drdpa_lock::lk.

Referenced by __kmp_set_user_lock_vptrs().

static bool __kmp_is_drdpa_lock_nestable ( kmp_drdpa_lock_t lck  )  [inline, static]
static int __kmp_is_queuing_lock_initialized ( kmp_queuing_lock_t lck  )  [static]

Definition at line 1933 of file kmp_lock.cpp.

References kmp_base_queuing_lock::initialized, and kmp_queuing_lock::lk.

Referenced by __kmp_set_user_lock_vptrs().

static bool __kmp_is_queuing_lock_nestable ( kmp_queuing_lock_t lck  )  [inline, static]
static bool __kmp_is_tas_lock_nestable ( kmp_tas_lock_t lck  )  [inline, static]
static int __kmp_is_ticket_lock_initialized ( kmp_ticket_lock_t lck  )  [static]

Definition at line 1137 of file kmp_lock.cpp.

References kmp_base_ticket_lock::initialized, and kmp_ticket_lock::lk.

Referenced by __kmp_set_user_lock_vptrs().

static bool __kmp_is_ticket_lock_nestable ( kmp_ticket_lock_t lck  )  [inline, static]
static kmp_user_lock_p __kmp_lock_block_allocate (  )  [static]
static kmp_lock_index_t __kmp_lock_table_insert ( kmp_user_lock_p  lck  )  [static]
kmp_user_lock_p __kmp_lookup_user_lock ( void **  user_lock,
char const *  func 
)
void __kmp_release_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
static void __kmp_release_drdpa_lock_with_checks ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_release_nested_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_release_nested_drdpa_lock_with_checks ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_release_nested_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_release_nested_queuing_lock_with_checks ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_release_nested_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_release_nested_tas_lock_with_checks ( kmp_tas_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_release_nested_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_release_nested_ticket_lock_with_checks ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
) [static]
void __kmp_release_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)
static void __kmp_release_queuing_lock_with_checks ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
) [static]
void __kmp_release_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)
static void __kmp_release_tas_lock_with_checks ( kmp_tas_lock_t lck,
kmp_int32  gtid 
) [static]
void __kmp_release_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
static void __kmp_release_ticket_lock_with_checks ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
) [static]
static void __kmp_set_drdpa_lock_flags ( kmp_drdpa_lock_t lck,
kmp_lock_flags_t  flags 
) [static]

Definition at line 2514 of file kmp_lock.cpp.

References kmp_base_drdpa_lock::flags, and kmp_drdpa_lock::lk.

Referenced by __kmp_set_user_lock_vptrs().

static void __kmp_set_drdpa_lock_location ( kmp_drdpa_lock_t lck,
const ident_t loc 
) [static]

Definition at line 2502 of file kmp_lock.cpp.

References kmp_drdpa_lock::lk, and kmp_base_drdpa_lock::location.

Referenced by __kmp_set_user_lock_vptrs().

void __kmp_set_queuing_lock_flags ( kmp_queuing_lock_t lck,
kmp_lock_flags_t  flags 
)
static void __kmp_set_queuing_lock_location ( kmp_queuing_lock_t lck,
const ident_t loc 
) [static]

Definition at line 1945 of file kmp_lock.cpp.

References kmp_queuing_lock::lk, and kmp_base_queuing_lock::location.

Referenced by __kmp_set_user_lock_vptrs().

static void __kmp_set_ticket_lock_flags ( kmp_ticket_lock_t lck,
kmp_lock_flags_t  flags 
) [static]

Definition at line 1161 of file kmp_lock.cpp.

References kmp_base_ticket_lock::flags, and kmp_ticket_lock::lk.

Referenced by __kmp_set_user_lock_vptrs().

static void __kmp_set_ticket_lock_location ( kmp_ticket_lock_t lck,
const ident_t loc 
) [static]

Definition at line 1149 of file kmp_lock.cpp.

References kmp_ticket_lock::lk, and kmp_base_ticket_lock::location.

Referenced by __kmp_set_user_lock_vptrs().

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().

static void __kmp_static_yield ( int  arg  )  [static]

Definition at line 88 of file kmp_lock.cpp.

References __kmp_yield().

int __kmp_test_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_test_drdpa_lock_with_checks ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_test_nested_drdpa_lock ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_test_nested_drdpa_lock_with_checks ( kmp_drdpa_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_test_nested_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_test_nested_queuing_lock_with_checks ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_test_nested_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_test_nested_tas_lock_with_checks ( kmp_tas_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_test_nested_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_test_nested_ticket_lock_with_checks ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_test_queuing_lock ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_test_queuing_lock_with_checks ( kmp_queuing_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_test_tas_lock ( kmp_tas_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_test_tas_lock_with_checks ( kmp_tas_lock_t lck,
kmp_int32  gtid 
) [static]
int __kmp_test_ticket_lock ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
)
static int __kmp_test_ticket_lock_with_checks ( kmp_ticket_lock_t lck,
kmp_int32  gtid 
) [static]
kmp_user_lock_p __kmp_user_lock_allocate ( void **  user_lock,
kmp_int32  gtid,
kmp_lock_flags_t  flags 
)
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().


Variable Documentation

void( * __kmp_acquire_nested_user_lock_with_checks_)(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
void( * __kmp_acquire_user_lock_with_checks_)(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
kmp_int32( * __kmp_get_user_lock_owner_)(kmp_user_lock_p lck) = NULL

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_release_nested_user_lock_with_checks_)(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
void( * __kmp_release_user_lock_with_checks_)(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
void( * __kmp_set_user_lock_location_)(kmp_user_lock_p lck, const ident_t *loc) = NULL
int( * __kmp_test_nested_user_lock_with_checks_)(kmp_user_lock_p lck, kmp_int32 gtid) = NULL
int( * __kmp_test_user_lock_with_checks_)(kmp_user_lock_p lck, kmp_int32 gtid) = NULL

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