From 34024a5dbc526954be409036125dcc1d62f42686 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Thu, 11 Feb 2016 15:51:47 -0800 Subject: [PATCH] Remove lock os thread in event loop Signed-off-by: Michael Crosby --- eventloop/eventloop.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/eventloop/eventloop.go b/eventloop/eventloop.go index 7a80a27..0c26495 100644 --- a/eventloop/eventloop.go +++ b/eventloop/eventloop.go @@ -1,9 +1,6 @@ package eventloop -import ( - "runtime" - "sync" -) +import "sync" // Event is receiving notification from loop with Handle() call. type Event interface { @@ -35,8 +32,6 @@ func NewChanLoop(q int) EventLoop { // All calls after first is no-op. func (el *ChanLoop) Start() error { go el.once.Do(func() { - // allocate whole OS thread, so nothing can get scheduled over eventloop - runtime.LockOSThread() for ev := range el.events { ev.Handle() }