better error checking in Run()
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12866 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -191,9 +191,7 @@ ServerApp::Run(void)
|
||||
if (fMonitorThreadID < B_OK)
|
||||
return false;
|
||||
|
||||
resume_thread(fMonitorThreadID);
|
||||
|
||||
return true;
|
||||
return resume_thread(fMonitorThreadID) == B_OK;
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -266,7 +264,8 @@ ServerApp::Activate(bool value)
|
||||
fIsActive = value;
|
||||
SetAppCursor();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//! Sets the cursor to the application cursor, if any.
|
||||
void
|
||||
ServerApp::SetAppCursor(void)
|
||||
@@ -278,6 +277,7 @@ ServerApp::SetAppCursor(void)
|
||||
gDesktop->ActiveRootLayer()->GetDisplayDriver()->SetCursor(fAppCursor);
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
\brief The thread function ServerApps use to monitor messages
|
||||
\param data Pointer to the thread's ServerApp object
|
||||
@@ -400,6 +400,7 @@ ServerApp::MonitorApp(void *data)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
\brief Handler function for BApplication API messages
|
||||
\param code Identifier code for the message. Equivalent to BMessage::what
|
||||
|
||||
Reference in New Issue
Block a user