License header & style

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31016 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes
2009-06-12 18:25:57 +00:00
parent c6083519e7
commit 80ee40e10c
+6 -2
View File
@@ -1,3 +1,7 @@
/*
* Copyright 2009 Oliver Ruiz Dorantes, oliver.ruiz.dorantes_at_gmail.com
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef PORTLISTENER_H_ #ifndef PORTLISTENER_H_
#define PORTLISTENER_H_ #define PORTLISTENER_H_
@@ -6,7 +10,7 @@
template < template <
typename TYPE, typename TYPE,
ssize_t MAX_MESSAGE_SIZE = 256, ssize_t MAX_MESSAGE_SIZE = 256,
size_t MAX_MESSAGE_DEEP = 16, size_t MAX_MESSAGE_DEEP = 16,
uint32 PRIORITY = B_URGENT_DISPLAY_PRIORITY> uint32 PRIORITY = B_URGENT_DISPLAY_PRIORITY>
class PortListener { class PortListener {
@@ -18,7 +22,6 @@ class PortListener {
port_listener_func func; port_listener_func func;
} fInformation; } fInformation;
public: public:
PortListener(const char* name, port_listener_func handler) PortListener(const char* name, port_listener_func handler)
{ {
@@ -97,6 +100,7 @@ class PortListener {
status_t Stop() { status_t Stop() {
status_t status; status_t status;
wait_for_thread(fThread, &status); wait_for_thread(fThread, &status);