Skip to content

Commit

Permalink
Mark Construct nogil so it can operate in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
thatch committed Dec 30, 2024
1 parent 4469d2b commit 45c9078
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyvoronoi/pyvoronoi.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ cdef extern from "voronoi.hpp":
VoronoiDiagram()
void AddPoint(Point p)
void AddSegment(Segment s)
void Construct()
void Construct() nogil
vector[Point] GetPoints()
vector[Segment] GetSegments()

Expand Down Expand Up @@ -268,8 +268,8 @@ cdef class Pyvoronoi:
raise VoronoiException('Construct() has already been called')

self.constructed = 1

self.thisptr.Construct()
with nogil:
self.thisptr.Construct()

self.thisptr.MapVertexIndexes()
self.thisptr.MapEdgeIndexes()
Expand Down

0 comments on commit 45c9078

Please sign in to comment.