vfs: check userland buffers before reading them.
[haiku.git] / headers / build / os / app / Looper.h
blobdd446ca3595547ccfbc6d873c83515f776a44afc
1 /*
2 * Copyright 2011, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5 #ifndef _LOOPER_H
6 #define _LOOPER_H
9 #include <OS.h>
12 // Port (Message Queue) Capacity
13 #define B_LOOPER_PORT_DEFAULT_CAPACITY 200
16 class BLooper {
17 public:
18 BLooper(const char* name = NULL,
19 int32 priority = B_NORMAL_PRIORITY,
20 int32 port_capacity
21 = B_LOOPER_PORT_DEFAULT_CAPACITY);
23 bool Lock() { return true; }
24 void Unlock() {}
28 #endif // _LOOPER_H