Give event loop it's own thread

This commit is contained in:
Michael Crosby 2015-11-13 14:13:13 -08:00
parent 18338b29a1
commit 371226d314

View file

@ -3,6 +3,7 @@ package containerd
import (
"os"
"path/filepath"
"runtime"
"sync"
"github.com/Sirupsen/logrus"
@ -71,6 +72,7 @@ func (s *Supervisor) Start(events chan *Event) error {
}
s.events = events
go func() {
runtime.LockOSThread()
for e := range events {
s.journal.write(e)
switch e.Type {