Revision: | 677 |
Committed: | 2006-03-04T07:11:04-08:00 (19 years, 3 months ago) by douglas |
File size: | 284 byte(s) |
Log Message: | I should probably go to sleep now... |
# | Content |
---|---|
1 | // Sleep |
2 | // |
3 | // Douglas Thrift |
4 | // |
5 | // $Id$ |
6 | |
7 | #ifndef _Sleep_hpp_ |
8 | #define _Sleep_hpp_ |
9 | |
10 | #include <cxx/platform.hpp> |
11 | |
12 | #ifndef MENES_PRAGMA_ONCE |
13 | #pragma once |
14 | #endif |
15 | |
16 | #include <ctime> |
17 | |
18 | _finline void Sleep() |
19 | { |
20 | ::timespec sleep = { 0, 10 }; |
21 | |
22 | ::nanosleep(&sleep, NULL); |
23 | } |
24 | |
25 | #endif//_Sleep_hpp_ |
Name | Value |
---|---|
svn:eol-style | native |
svn:keywords | Id |