xinggangw / leptonica

Automatically exported from code.google.com/p/leptonica
1 stars 0 forks source link

MORPH_BC not thread-safe #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The MORPH_BC variable is a global variable in morph.c which is not constant, 
rendering any 
functions using this variable not thread-safe.

Original issue reported on code.google.com by autoph...@gmail.com on 23 Jun 2009 at 10:57

GoogleCodeExporter commented 8 years ago
You are correct.  However, I judged this to be an acceptable risk because there 
is no
reason to do anything except SET the boundary conditions in an application, so I
can't imagine a situation where two threads are competing to change it in two
different ways.

Original comment by dan.bloo...@gmail.com on 23 Jun 2009 at 11:15

GoogleCodeExporter commented 8 years ago

Original comment by dan.bloo...@gmail.com on 26 Jun 2009 at 3:10