xref: /haiku/headers/build/os/app/Looper.h (revision a84e14ca84d32e9469c91372d71556488bd3d48b)
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
7 
8 
9 #include <OS.h>
10 
11 
12 // Port (Message Queue) Capacity
13 #define B_LOOPER_PORT_DEFAULT_CAPACITY  200
14 
15 
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);
22 
Lock()23 			bool				Lock()		{ return true; }
Unlock()24 			void				Unlock()	{}
25 };
26 
27 
28 #endif	// _LOOPER_H
29