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)
|
if (fMonitorThreadID < B_OK)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
resume_thread(fMonitorThreadID);
|
return resume_thread(fMonitorThreadID) == B_OK;
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@@ -266,7 +264,8 @@ ServerApp::Activate(bool value)
|
|||||||
fIsActive = value;
|
fIsActive = value;
|
||||||
SetAppCursor();
|
SetAppCursor();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//! Sets the cursor to the application cursor, if any.
|
//! Sets the cursor to the application cursor, if any.
|
||||||
void
|
void
|
||||||
ServerApp::SetAppCursor(void)
|
ServerApp::SetAppCursor(void)
|
||||||
@@ -278,6 +277,7 @@ ServerApp::SetAppCursor(void)
|
|||||||
gDesktop->ActiveRootLayer()->GetDisplayDriver()->SetCursor(fAppCursor);
|
gDesktop->ActiveRootLayer()->GetDisplayDriver()->SetCursor(fAppCursor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief The thread function ServerApps use to monitor messages
|
\brief The thread function ServerApps use to monitor messages
|
||||||
\param data Pointer to the thread's ServerApp object
|
\param data Pointer to the thread's ServerApp object
|
||||||
@@ -400,6 +400,7 @@ ServerApp::MonitorApp(void *data)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
\brief Handler function for BApplication API messages
|
\brief Handler function for BApplication API messages
|
||||||
\param code Identifier code for the message. Equivalent to BMessage::what
|
\param code Identifier code for the message. Equivalent to BMessage::what
|
||||||
|
|||||||
Reference in New Issue
Block a user