Give event loop it's own thread
This commit is contained in:
parent
18338b29a1
commit
371226d314
1 changed files with 2 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue