File: uuid_time.h

package info (click to toggle)
ossp-uuid 1.6.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: ansic: 1,540; cpp: 255; sh: 186; makefile: 127
file content (19 lines) | stat: -rw-r--r-- 278 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// SPDX-License-Identifier: 0BSD


#ifndef __UUID_TIME_H__
#define __UUID_TIME_H__

#if __has_include(<sched.h>)
#include <sched.h>
#elif defined(_WIN32)
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
static int sched_yield() {
	SwitchToThread();
	return 0;
}
#endif


#endif