~ubuntu-branches/ubuntu/trusty/argyll/trusty-proposed

« back to all changes in this revision

Viewing changes to libusb1/libusb/os/threads_posix.h

  • Committer: Package Import Robot
  • Author(s): Artur Rona
  • Date: 2014-02-12 00:35:39 UTC
  • mfrom: (13.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20140212003539-24tautzlitsiz61w
Tags: 1.5.1-5ubuntu1
* Merge from Debian unstable. (LP: #1275572) Remaining changes:
  - debian/control:
    + Build-depend on libtiff-dev rather than libtiff4-dev.
  - debian/control, debian/patches/06_fix_udev_rule.patch:
    + Fix udev rules to actually work; ENV{ACL_MANAGE} has
      stopped working ages ago, and with logind it's now the
      "uaccess" tag. Dropping also consolekit from Recommends.
  - debian/patches/drop-usb-db.patch:
    + Use hwdb builtin, instead of the obsolete usb-db
      in the udev rules.
* debian/patches/05_ftbfs-underlinkage.diff:
  - Dropped change, no needed anymore.
* Refresh the patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * libusb synchronization using POSIX Threads
3
 
 *
4
 
 * Copyright (C) 2010 Peter Stuge <peter@stuge.se>
5
 
 *
6
 
 * This library is free software; you can redistribute it and/or
7
 
 * modify it under the terms of the GNU Lesser General Public
8
 
 * License as published by the Free Software Foundation; either
9
 
 * version 2.1 of the License, or (at your option) any later version.
10
 
 *
11
 
 * This library is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14
 
 * Lesser General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU Lesser General Public
17
 
 * License along with this library; if not, write to the Free Software
18
 
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
 
 */
20
 
 
21
 
#ifndef __LIBUSB_THREADS_POSIX_H__
22
 
#define __LIBUSB_THREADS_POSIX_H__
23
 
 
24
 
#include <pthread.h>
25
 
 
26
 
#define usbi_mutex_static_t             static pthread_mutex_t
27
 
#define USBI_MUTEX_INITIALIZER          PTHREAD_MUTEX_INITIALIZER
28
 
#define usbi_mutex_static_lock          pthread_mutex_lock
29
 
#define usbi_mutex_static_unlock        pthread_mutex_unlock
30
 
 
31
 
#define usbi_mutex_t                    pthread_mutex_t
32
 
#define usbi_mutex_init                 pthread_mutex_init
33
 
#define usbi_mutex_lock                 pthread_mutex_lock
34
 
#define usbi_mutex_unlock               pthread_mutex_unlock
35
 
#define usbi_mutex_trylock              pthread_mutex_trylock
36
 
#define usbi_mutex_destroy              pthread_mutex_destroy
37
 
 
38
 
#define usbi_cond_t                     pthread_cond_t
39
 
#define usbi_cond_init                  pthread_cond_init
40
 
#define usbi_cond_wait                  pthread_cond_wait
41
 
#define usbi_cond_timedwait             pthread_cond_timedwait
42
 
#define usbi_cond_broadcast             pthread_cond_broadcast
43
 
#define usbi_cond_destroy               pthread_cond_destroy
44
 
#define usbi_cond_signal        pthread_cond_signal
45
 
 
46
 
#define usbi_thread_id                  pthread_t
47
 
#define usbi_get_thread_id()            pthread_self()
48
 
#define usbi_thread_equal(aa, bb)       pthread_equal(aa, bb)
49
 
 
50
 
#endif /* __LIBUSB_THREADS_POSIX_H__ */