# BLooper Tasks

|  |  |  |  | Task Summary | Owner
|  |  |  |  | BLooper | Erik Jaesler

|  |  |  |  | Task Details
BLooper Class
|  |  |  |  | BLooper(const char* name = NULL, int32 priority = B_NORMAL_PRIORITY, int32 port_capacity = B_LOOPER_PORT_DEFAULT_CAPACITY);
|  |  |  |  | BLooper(BMessage* data);
|  |  |  |  | virtual ~BLooper();
|  |  |  |  | static BArchivable* Instantiate(BMessage* data);
|  |  |  |  | virtual status_t Archive(BMessage* data, bool deep = true) const;
|  |  |  |  | status_t PostMessage(uint32 command);
|  |  |  |  | status_t PostMessage(BMessage* message);
|  |  |  |  | status_t PostMessage(uint32 command, BHandler* handler, BHandler* reply_to = NULL);
|  |  |  |  | status_t PostMessage(BMessage* message, BHandler* handler, BHandler* reply_to = NULL);
|  |  |  |  | virtual void DispatchMessage(BMessage* message, BHandler* handler);
|  |  |  |  | virtual void MessageReceived(BMessage* msg);
|  |  |  |  | BMessage* CurrentMessage() const;
|  |  |  |  | BMessage* DetachCurrentMessage();
|  |  |  |  | BMessageQueue* MessageQueue() const;
|  |  |  |  | bool IsMessageWaiting() const;
|  |  |  |  | void AddHandler(BHandler* handler);
|  |  |  |  | bool RemoveHandler(BHandler* handler);
|  |  |  |  | int32 CountHandlers() const;
|  |  |  |  | BHandler* HandlerAt(int32 index) const;
|  |  |  |  | int32 IndexOf(BHandler* handler) const;
|  |  |  |  | BHandler* PreferredHandler() const;
|  |  |  |  | void SetPreferredHandler(BHandler* handler);
|  |  |  |  | virtual thread_id Run();
|  |  |  |  | virtual void Quit();
|  |  |  |  | virtual bool QuitRequested();
|  |  |  |  | bool Lock();
|  |  |  |  | void Unlock();
|  |  |  |  | bool IsLocked() const;
|  |  |  |  | status_t LockWithTimeout(bigtime_t timeout);
|  |  |  |  | thread_id Thread() const;
|  |  |  |  | team_id Team() const;
|  |  |  |  | static BLooper* LooperForThread(thread_id tid);
|  |  |  |  | thread_id LockingThread() const;
|  |  |  |  | int32 CountLocks() const;
|  |  |  |  | int32 CountLockRequests() const;
|  |  |  |  | sem_id Sem() const;
|  |  |  |  | virtual BHandler* ResolveSpecifier(BMessage* msg, int32 index, BMessage* specifier, int32 form, const char* property);
|  |  |  |  | virtual status_t GetSupportedSuites(BMessage* data);
|  |  |  |  | virtual void AddCommonFilter(BMessageFilter* filter);
|  |  |  |  | virtual bool RemoveCommonFilter(BMessageFilter* filter);
|  |  |  |  | virtual void SetCommonFilterList(BList* filters);
|  |  |  |  | BList* CommonFilterList() const;
|  |  |  |  | BMessage* MessageFromPort(bigtime_t = B_INFINITE_TIMEOUT);
|  |  |  |  | virtual void task_looper();

Legend
| Functional Spec
| Use Cases
| Unit Tests
| Technical Spec
| Implementation
| Completed

The OpenBeOS project is hosted by:

Copyright © 2001-2002 OpenBeOS Project