File: sleep.h

package info (click to toggle)
afterstep 2.2.12-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 33,168 kB
  • sloc: ansic: 201,695; sh: 5,894; xml: 3,721; makefile: 2,095; perl: 1,558; cpp: 811
file content (26 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef SLEEP_H_HEADER_INCLUDED
#define SLEEP_H_HEADER_INCLUDED

#ifdef __cplusplus
extern "C" {
#endif

#ifdef __hpux
#define PORTABLE_SELECT(w,i,o,e,t)	select((w),(int *)(i),(int *)(o),(e),(t))
#else
#define PORTABLE_SELECT(w,i,o,e,t)	select((w),(i),(o),(e),(t))
#endif


void	sleep_a_little (int n);
void    sleep_a_millisec (int n);

void	start_ticker (unsigned int size);
void	wait_tick ();
int		is_tick ();

#ifdef __cplusplus
}
#endif

#endif