libiio  0.9
Library for interfacing with IIO devices
/home/travis/build/analogdevicesinc/libiio/iio-lock.h
00001 /*
00002  * libiio - Library for interfacing industrial I/O (IIO) devices
00003  *
00004  * Copyright (C) 2015 Analog Devices, Inc.
00005  * Author: Paul Cercueil <paul.cercueil@analog.com>
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  */
00018 
00019 #ifndef _IIO_LOCK_H
00020 #define _IIO_LOCK_H
00021 
00022 struct iio_mutex;
00023 
00024 struct iio_mutex * iio_mutex_create(void);
00025 void iio_mutex_destroy(struct iio_mutex *lock);
00026 
00027 void iio_mutex_lock(struct iio_mutex *lock);
00028 void iio_mutex_unlock(struct iio_mutex *lock);
00029 
00030 #endif /* _IIO_LOCK_H */
 All Data Structures Files Functions Variables Enumerations