]> git.openfabrics.org - ~shefty/ibacm.git/commit
Move endpoint activation to another thread
authorSean Hefty <sean.hefty@intel.com>
Fri, 21 Jan 2011 01:06:28 +0000 (17:06 -0800)
committerSean Hefty <sean.hefty@intel.com>
Sat, 5 Mar 2011 00:47:39 +0000 (16:47 -0800)
commite629d6e9bad964831661e90f0ecd5d597855b310
tree74c254a77501b64753142f1e530134e5ffa86d53
parent38544713261375f38a37f522f894bfe22e0f6775
Move endpoint activation to another thread

To support dynamic changes, move endpoint activation from
the main thread into a dedicated thread that will also
process asynchronous events (to be added separately).  The
main thread will still initialize the device and port
list, but activation code will be handled by the new thread,
so that endpoints can be deferred until their associated
ports are activated.

This also means that multicast joins are deferred, and
additional state checking is needed to prevent the main
thread (which processes client requests) from accessing
endpoints which are not yet fully active.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
src/acm.c