OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
mumps_thread.c
Go to the documentation of this file.
1/*
2 *
3 * This file is part of MUMPS 5.5.1, released
4 * on Tue Jul 12 13:17:24 UTC 2022
5 *
6 *
7 * Copyright 1991-2022 CERFACS, CNRS, ENS Lyon, INP Toulouse, Inria,
8 * Mumps Technologies, University of Bordeaux.
9 *
10 * This version of MUMPS is provided to you free of charge. It is
11 * released under the CeCILL-C license
12 * (see doc/CeCILL-C_V1-en.txt, doc/CeCILL-C_V1-fr.txt, and
13 * https://cecill.info/licences/Licence_CeCILL-C_V1-en.html)
14 *
15 */
16#define USLEEP F_SYMBOL(usleep,USLEEP)
17#include "mumps_common.h"
18#if defined(MUMPS_WIN32)
19# include<windows.h>
20 void MUMPS_CALL USLEEP(MUMPS_INT* time)
21 {
22 /* int* time : in microseconds */
23 /* Sleep: milliseconds */
24 Sleep((unsigned long)(*time)/1000);
25 }
26#else
27# include<unistd.h>
29 {
30 /* int* time : in microseconds */
31 /* usleep: microseconds */
32 usleep((unsigned int)*time);
33 }
34#endif
#define MUMPS_INT
#define MUMPS_CALL
#define USLEEP