Skip to content

Commit 564dda9

Browse files
authored
Merge pull request #616 from billmccartney/pythonGIL
Python Multithreading Support via GIL
2 parents 0e42395 + 6672f64 commit 564dda9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

wrappers/python/zxing.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ auto read_barcodes_impl(py::object _image, const BarcodeFormats& formats, bool t
9090
}
9191

9292
const auto bytes = image.data();
93+
// Disables the GIL during zxing processing (restored automatically upon completion)
94+
py::gil_scoped_release release;
9395
return ReadBarcodes({bytes, width, height, imgfmt, width * channels, channels}, hints);
9496
}
9597

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy