haiku/docs
Ingo Weinhold 6bfd06d1ff BRoster::Launch() eventually launches the application in question
in several steps:
1. early pre-registration with the registrar ("I wanna launch the
   app, make sure noone interferes.")
2. load the app image
3. finish pre-registration with the registrar ("I have launched
   the app, here is its team ID.")
4. start app main thread
5. send "on launch" messages to the app (argv, refs, others)

If the app is already running or being launched, 1. fails with a
conclusive error code and returns the team ID and the pre-registration
token of the app. Steps 2 - 4 are skipped and only the messages are
delivered using the team ID returned by 1.

This change fixes a race condition: The failed early pre-registration
request obviously cannot return the team ID, if the other thread
launching the app has not finished step 3 yet. Thus the argv/refs
message would not get delivered and Launch() would not return the
correct team ID.

Now we wait for the pre-registration to be finished in this case, using
the former _IsAppPreRegistered() mechanism, which already provided
such a waiting feature for one request. It has been extended to
accomodate an arbitrary number of waiting requests and renamed to
_IsAppRegistered().

This fixed bug #763.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18728 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-08-31 17:54:16 +00:00
..
apps/cortex imported Cortex 2.1.2 documentation 2006-03-08 13:30:15 +00:00
bin hey is in bin/ , kept the user guide in docs/bin/hey.html 2006-06-13 08:54:19 +00:00
develop BRoster::Launch() eventually launches the application in question 2006-08-31 17:54:16 +00:00
freetype2 This commit was generated by cvs2svn to compensate for changes in r2038, 2002-11-20 19:21:05 +00:00
user Some initial revisions for the first 11 chapters or so 2006-07-27 01:30:57 +00:00
doxygen.conf Add the doxygen configuration file 2002-07-12 09:12:52 +00:00