Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
3rdparty
paho.mqtt.c
src
mutex_type.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (c) 2009, 2018 IBM Corp.
3
*
4
* All rights reserved. This program and the accompanying materials
5
* are made available under the terms of the Eclipse Public License v2.0
6
* and Eclipse Distribution License v1.0 which accompany this distribution.
7
*
8
* The Eclipse Public License is available at
9
* https://www.eclipse.org/legal/epl-2.0/
10
* and the Eclipse Distribution License is available at
11
* http://www.eclipse.org/org/documents/edl-v10.php.
12
*
13
*******************************************************************************/
14
#if !defined(_MUTEX_TYPE_H_)
15
#define _MUTEX_TYPE_H_
16
17
#if defined(_WIN32) || defined(_WIN64)
18
#include <windows.h>
19
#define mutex_type HANDLE
20
#else
21
#include <pthread.h>
22
#define mutex_type pthread_mutex_t*
23
#endif
24
25
#endif
/* _MUTEX_TYPE_H_ */
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:09