Commit Graph

16 Commits (1d4d4fec00aacb1e1e00a4f60a6af4d8ed3b8bde)

Author SHA1 Message Date
Nat Goodspeed e3a4e3dc10 DEV-40930: Added ["change"] key to login-module status events. Changed
existing event calls to use state as "offline" or "online", with "change"
indicating the reason for this status event. Changed disconnect() to send
state "offline", change "disconnect" -- instead of replaying last auth
failure. Changed unit tests accordingly.
Changed LLLoginInstance::handleLoginEvent() to use LLEventDispatcher to route
calls to handleLoginFailure() et al.
Added LLEventDispatcher::get() to allow retrieving Callable by name and
testing for empty().
2009-10-09 19:42:59 -04:00
Nat Goodspeed ec52e19dd1 DEV-32777, QAR-1619: Disable MSVC Release-build optimization for LLCoros::launchImpl().
This fixes the Release-build crash in lllogin_test.cpp.
2009-09-25 10:55:25 -04:00
Palmer 8b7f7143d6 Brad's changes to testquit so we can pass executable to run to it.
Switching eventlet to use subrepo.

By Brad, reviewed by Palmer
2009-07-10 14:53:11 -07:00
brad kittenbrink 7c1742ec7d Added hack for fetching eventlet in place of svn:externals. 2009-06-30 19:12:39 -04:00
Nat Goodspeed c5368c6368 Fix remaining Mac build errors 2009-06-25 09:49:24 -04:00
Bryan O'Sullivan 5d7992d249 Switch to new unit test infrastructure 2009-06-22 16:05:57 -07:00
Brad Kittenbrink 8a8edfd98c First pieces of event host module (DEV-31978).
Basically implements the spec nat decribed in the jira.
Test coverage isn't yet complete though.

mostly paired with nat.
2009-06-18 23:42:51 +00:00
Nat Goodspeed ad40d64b0e DEV-32777: tip won't even build on Windows without pacifying MSVC warning 2009-06-17 15:13:48 +00:00
Nat Goodspeed 820d4a20d1 DEV-32777: Use a canonical boost::coroutines::coroutine signature, relying on
boost::bind() to pass any other coroutine arguments. This allows us to remove
the LLCoroBase and LLCoro constructs, directly storing a coroutine object in
our ptr_map. It also allows us to remove the multiple launch() overloads for
multiple arguments. Finally, it lets us move most launch() functionality into
a non-template method.
2009-06-04 16:01:40 +00:00
Nat Goodspeed a3d54c48c6 DEV-32777: When launching login coroutine, instead of binding _2, _3
placeholders and then asking Boost.Coroutine to pass parameters to them,
simply bind the desired values.
2009-06-04 02:37:59 +00:00
Nat Goodspeed 46291bf740 DEV-32777: Make coroutine's top-level function accept value params, not
reference params.
2009-06-04 01:59:31 +00:00
Nat Goodspeed 285613b892 DEV-32777: Introduce LLCoros, an LLSingleton registry of named coroutine
instances. LLCoros::launch() intends to address three issues:
- ownership of coroutine instance
- cleanup of coroutine instance when it terminates
- central place to twiddle MSVC optimizations to bypass DEV-32777 crash.
Initially coded on Mac; will address the third bullet on Windows.
Adapt listenerNameForCoro() to consult LLCoros::getName() if applicable.
Change LLLogin::Impl::connect() to use LLCoros::launch().
LLCoros::getName() relies on patch to boost::coroutines::coroutine::self to
introduce get_id().
2009-06-03 21:38:21 +00:00
Nat Goodspeed 7915162b96 DEV-31892: rev 119315 got lost somewhere along the way?! Reapplying. 2009-05-28 22:53:21 +00:00
Nat Goodspeed c607752a9d DEV-32777: ensure that stack objects listening on persistent LLEventPumps get
properly disconnected when destroyed.
Break out Debug class and associated macros from lleventcoro_test.cpp into test/debug.h.
Add Debug output to lllogin_test.
2009-05-28 21:25:58 +00:00
Nat Goodspeed cb5918df31 Remove silly std::cout debugging output 2009-05-14 20:50:50 +00:00
Nat Goodspeed dc93462991 svn merge -r113003:119136 svn+ssh://svn.lindenlab.com/svn/linden/branches/login-api/login-api-2 svn+ssh://svn.lindenlab.com/svn/linden/branches/login-api/login-api-3 2009-05-11 20:05:46 +00:00