root/oshmem/shmem/c/shmem_clear_lock.c

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

DEFINITIONS

This source file includes following definitions.
  1. shmem_clear_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 "oshmem/constants.h"
  16 #include "oshmem/include/shmem.h"
  17 
  18 #include "oshmem/shmem/shmem_api_logger.h"
  19 #include "oshmem/runtime/runtime.h"
  20 #include "oshmem/shmem/shmem_lock.h"
  21 
  22 #if OSHMEM_PROFILING
  23 #include "oshmem/include/pshmem.h"
  24 #pragma weak shmem_clear_lock = pshmem_clear_lock
  25 #include "oshmem/shmem/c/profile/defines.h"
  26 #endif
  27 
  28 void shmem_clear_lock(volatile long *lock)
  29 {
  30     _shmem_clear_lock((void *)lock, sizeof(long));
  31 }

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