Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
import: lock thumbnailing OS threads that might potentially depend on…
Browse files Browse the repository at this point in the history
… thread-local storage

maybe fixes #77
  • Loading branch information
bakape authored Feb 10, 2021
1 parent 9df6d45 commit 717ae6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions import/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ func init() {
n := runtime.NumCPU() + 1
for i := 0; i < n; i++ {
go func() {
runtime.LockOSThread()
for {
req := <-importFile
img, err := doImport(req.f, req.size, req.addTags)
Expand Down

0 comments on commit 717ae6e

Please sign in to comment.