2013-09-10 19:34:09 +04:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2013 Mellanox Technologies, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
* $COPYRIGHT$
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2013-09-10 19:34:09 +04:00
|
|
|
* Additional copyrights may follow
|
2015-06-24 06:59:57 +03:00
|
|
|
*
|
2013-09-10 19:34:09 +04:00
|
|
|
* $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);
|
|
|
|
|
|
|
|
|
|
|
|
#endif /*SHMEM_LOCK_H*/
|