root/oshmem/shmem/c/shmem_test_lock.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. shmem_test_lock

   1 /*
   2  * Copyright (c) 2013-2016 Mellanox Technologies, Inc.
   3  *                         All rights reserved.
   4  * Copyright (c) 2019      Research Organization for Information Science
   5  *                         and Technology (RIST).  All rights reserved.
   6  * $COPYRIGHT$
   7  *
   8  * Additional copyrights may follow
   9  *
  10  * $HEADER$
  11  */
  12 
  13 #include "oshmem_config.h"
  14 
  15 #include <stdlib.h>
  16 
  17 #include "oshmem/constants.h"
  18 #include "oshmem/include/shmem.h"
  19 #include "oshmem/shmem/shmem_api_logger.h"
  20 #include "oshmem/runtime/runtime.h"
  21 #include "oshmem/shmem/shmem_lock.h"
  22 
  23 #if OSHMEM_PROFILING
  24 #include "oshmem/include/pshmem.h"
  25 #pragma weak shmem_test_lock = pshmem_test_lock
  26 #include "oshmem/shmem/c/profile/defines.h"
  27 #endif
  28 
  29 int shmem_test_lock(volatile long *lock)
  30 {
  31     return _shmem_test_lock((void *)lock, sizeof(long));
  32 }

/* [<][>][^][v][top][bottom][index][help] */