2 * Copyright 2001-2005, Haiku.
3 * Distributed under the terms of the MIT License.
6 * Erik Jaesler (erik@cgsoftware.com)
7 * Axel Dörfler, axeld@pinc-software.de
11 #include <Application.h>
14 #include <ApplicationPrivate.h>
15 #include <AppServerLink.h>
18 /** AppServerLink provides proxied access to the application's
19 * connection with the app_server.
20 * It has BAutolock semantics:
21 * creating one locks the app_server connection; destroying one
22 * unlocks the connection.
26 static BLocker
sLock("AppServerLink_sLock");
31 AppServerLink::AppServerLink(void)
35 // if there is no be_app, we can't do a whole lot, anyway
37 fReceiver
= &BApplication::Private::ServerLink()->Receiver();
38 fSender
= &BApplication::Private::ServerLink()->Sender();
40 debugger("You need to have a valid app_server connection first!");
45 AppServerLink::~AppServerLink()
50 } // namespace BPrivate