File: iio-lock.h

package info (click to toggle)
libiio 0.16-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,352 kB
  • sloc: ansic: 13,982; cs: 688; python: 584; yacc: 419; sh: 412; xml: 192; lex: 170; makefile: 32
file content (30 lines) | stat: -rw-r--r-- 964 bytes parent folder | download | duplicates (3)
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
30
/*
 * libiio - Library for interfacing industrial I/O (IIO) devices
 *
 * Copyright (C) 2015 Analog Devices, Inc.
 * Author: Paul Cercueil <paul.cercueil@analog.com>
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 */

#ifndef _IIO_LOCK_H
#define _IIO_LOCK_H

struct iio_mutex;

struct iio_mutex * iio_mutex_create(void);
void iio_mutex_destroy(struct iio_mutex *lock);

void iio_mutex_lock(struct iio_mutex *lock);
void iio_mutex_unlock(struct iio_mutex *lock);

#endif /* _IIO_LOCK_H */