Added very simple BLooper class to libbe_build.
This commit is contained in:
@@ -1 +1,28 @@
|
|||||||
#include <../os/app/Looper.h>
|
/*
|
||||||
|
* Copyright 2011, Haiku, Inc. All Rights Reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
#ifndef _LOOPER_H
|
||||||
|
#define _LOOPER_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <OS.h>
|
||||||
|
|
||||||
|
|
||||||
|
// Port (Message Queue) Capacity
|
||||||
|
#define B_LOOPER_PORT_DEFAULT_CAPACITY 200
|
||||||
|
|
||||||
|
|
||||||
|
class BLooper {
|
||||||
|
public:
|
||||||
|
BLooper(const char* name = NULL,
|
||||||
|
int32 priority = B_NORMAL_PRIORITY,
|
||||||
|
int32 port_capacity
|
||||||
|
= B_LOOPER_PORT_DEFAULT_CAPACITY);
|
||||||
|
|
||||||
|
bool Lock() { return true; }
|
||||||
|
void Unlock() {}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
#endif // _LOOPER_H
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ USES_BE_API on <libbe_build>app_kit.o = true ;
|
|||||||
BuildPlatformMergeObjectPIC <libbe_build>app_kit.o :
|
BuildPlatformMergeObjectPIC <libbe_build>app_kit.o :
|
||||||
Application.cpp
|
Application.cpp
|
||||||
AppMisc.cpp
|
AppMisc.cpp
|
||||||
|
Looper.cpp
|
||||||
Message.cpp
|
Message.cpp
|
||||||
MessageAdapter.cpp
|
MessageAdapter.cpp
|
||||||
Messenger.cpp
|
Messenger.cpp
|
||||||
|
|||||||
@@ -0,0 +1,12 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2011, Ingo Weinhold, [email protected].
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <Looper.h>
|
||||||
|
|
||||||
|
|
||||||
|
BLooper::BLooper(const char* name, int32 priority, int32 port_capacity)
|
||||||
|
{
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user