1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
/*
* Copyright (c) 2013 Mellanox Technologies, Inc.
* All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
*
* $HEADER$
*/
/**
* @file
*/
#ifndef SHMEM_LOCK_H
#define SHMEM_LOCK_H
#include "oshmem_config.h"
int shmem_lock_init(void);
int shmem_lock_finalize(void);
void _shmem_set_lock(void *lock, int lock_size);
int _shmem_test_lock(void *lock, int lock_size);
void _shmem_clear_lock(void *lock, int lock_size);
void _shmem_mcs_set_lock(long *lock);
void _shmem_mcs_clear_lock(long *lock);
int _shmem_mcs_test_lock(long *lock);
#endif /*SHMEM_LOCK_H*/
|