BTRFS: Implement BTree::Path and change _Find.
[haiku.git] / src / apps / packageinstaller / BlockingWindow.h
blob717fb768e403be9b764b99f1ed508df1d98127e8
1 /*
2 * Copyright (c) 2014, Stephan Aßmus <superstippi@gmx.de>
3 * All rights reserved. Distributed under the terms of the MIT license.
4 */
5 #ifndef BLOCKING_WINDOW_H
6 #define BLOCKING_WINDOW_H
9 #include <Window.h>
12 class BlockingWindow : public BWindow {
13 public:
14 BlockingWindow(BRect frame,
15 const char* title, uint32 flags = 0);
16 virtual ~BlockingWindow();
18 virtual bool QuitRequested();
20 virtual int32 Go();
22 protected:
23 void ReleaseSem(int32 returnValue);
25 private:
26 sem_id fSemaphore;
27 int32 fReturnValue;
31 #endif // BLOCKING_WINDOW_H