Line | |
---|
1 | /*
|
---|
2 | * synergy -- mouse and keyboard sharing utility
|
---|
3 | * Copyright (C) 2002 Chris Schoeneman
|
---|
4 | *
|
---|
5 | * This package is free software; you can redistribute it and/or
|
---|
6 | * modify it under the terms of the GNU General Public License
|
---|
7 | * found in the file COPYING that should have accompanied this file.
|
---|
8 | *
|
---|
9 | * This package is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
12 | * GNU General Public License for more details.
|
---|
13 | */
|
---|
14 |
|
---|
15 | #ifndef IARCHSLEEP_H
|
---|
16 | #define IARCHSLEEP_H
|
---|
17 |
|
---|
18 | #include "IInterface.h"
|
---|
19 |
|
---|
20 | //! Interface for architecture dependent sleeping
|
---|
21 | /*!
|
---|
22 | This interface defines the sleep operations required by
|
---|
23 | synergy. Each architecture must implement this interface.
|
---|
24 | */
|
---|
25 | class IArchSleep : public IInterface {
|
---|
26 | public:
|
---|
27 | //! @name manipulators
|
---|
28 | //@{
|
---|
29 |
|
---|
30 | //! Sleep
|
---|
31 | /*!
|
---|
32 | Blocks the calling thread for \c timeout seconds. If
|
---|
33 | \c timeout < 0.0 then the call returns immediately. If \c timeout
|
---|
34 | == 0.0 then the calling thread yields the CPU.
|
---|
35 |
|
---|
36 | (cancellation point)
|
---|
37 | */
|
---|
38 | virtual void sleep(double timeout) = 0;
|
---|
39 |
|
---|
40 | //@}
|
---|
41 | };
|
---|
42 |
|
---|
43 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.