Assert the right lock, thanks Axel. Some clean up.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42496 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4154a161ed
commit
b9bedde479
@ -9,13 +9,15 @@
|
|||||||
|
|
||||||
#include "MessageLooper.h"
|
#include "MessageLooper.h"
|
||||||
|
|
||||||
#include <Autolock.h>
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <Autolock.h>
|
||||||
|
|
||||||
|
|
||||||
MessageLooper::MessageLooper(const char* name)
|
MessageLooper::MessageLooper(const char* name)
|
||||||
: BLocker(name),
|
:
|
||||||
|
BLocker(name),
|
||||||
fThread(-1),
|
fThread(-1),
|
||||||
fQuitting(false),
|
fQuitting(false),
|
||||||
fDeathSemaphore(-1)
|
fDeathSemaphore(-1)
|
||||||
|
@ -7,15 +7,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "Desktop.h"
|
|
||||||
#include "Workspace.h"
|
#include "Workspace.h"
|
||||||
#include "WorkspacePrivate.h"
|
|
||||||
#include "Window.h"
|
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include <Debug.h>
|
||||||
|
|
||||||
|
#include "Desktop.h"
|
||||||
|
#include "WorkspacePrivate.h"
|
||||||
|
#include "Window.h"
|
||||||
|
|
||||||
|
|
||||||
static rgb_color kDefaultColor = (rgb_color){ 51, 102, 152, 255 };
|
static rgb_color kDefaultColor = (rgb_color){ 51, 102, 152, 255 };
|
||||||
|
|
||||||
@ -82,6 +85,7 @@ Workspace::Workspace(Desktop& desktop, int32 index)
|
|||||||
fDesktop(desktop),
|
fDesktop(desktop),
|
||||||
fCurrentWorkspace(index == desktop.CurrentWorkspace())
|
fCurrentWorkspace(index == desktop.CurrentWorkspace())
|
||||||
{
|
{
|
||||||
|
ASSERT(desktop.IsLocked());
|
||||||
RewindWindows();
|
RewindWindows();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user