dev: Protect PollEvent processing when running in parallel mode
authorAndreas Sandberg <andreas@sandberg.pp.se>
Wed, 9 Apr 2014 14:01:43 +0000 (16:01 +0200)
committerAndreas Sandberg <andreas@sandberg.pp.se>
Wed, 9 Apr 2014 14:01:43 +0000 (16:01 +0200)
commit221f4f232ae79b8123e7ce28d26a873e1ba9f9dc
tree0d1f889216a233ee9bf44209d77dd321cf7e0be9
parentd805e42b81de580342a615ea99491401943a14d4
dev: Protect PollEvent processing when running in parallel mode

The calling thread is undefined when the PollQueue services events.
This implies that PollEvents need to handle the case where they are
processed from a different thread than the thread that created the
event. This changeset adds temporary event queue migrations to the VNC
server, the ethernet tap device, and the terminal to protect them from
inter-thread calls.
src/base/vnc/vncserver.cc
src/dev/ethertap.cc
src/dev/terminal.cc