Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
3rdparty
paho.mqtt.c
src
OsWrapper.c
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (c) 2016, 2017 logi.cals GmbH
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
* Contributors:
14
* Gunter Raidl - timer support for VxWorks
15
* Rainer Poisel - reusability
16
*******************************************************************************/
17
18
#include "
OsWrapper.h
"
19
20
#if defined(_WRS_KERNEL)
21
void
usleep(useconds_t useconds)
22
{
23
struct
timespec tv;
24
tv.tv_sec = useconds / 1000000;
25
tv.tv_nsec = (useconds % 1000000) * 1000;
26
nanosleep(&tv, NULL);
27
}
28
#endif
/* defined(_WRS_KERNEL) */
OsWrapper.h
plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 03:48:10