Bug #1383 (closed)
Opened 15 years ago
Closed 15 years ago
static ObjectFactory access in OmeroCpp may need a mutex
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | minor | Cc: | bernhard.hollaender@… |
Sprint: | n.a. | ||
Total Remaining Time: | n.a. |
Description
From Bernhard:
A colleague of mine has tried to create clients in parallel
threads, this caused a segfault while accessing the objectfactories
map. Could it be that you need to mutex the objectFactories method? If
one thread added some keys already, while another is accessing the
partial filled map leads to missing keys. I could be something
different though, as I know that you have a mutex in the client code
above the access to the objectFactories method.
Change History (2)
comment:1 Changed 15 years ago by jmoore
comment:2 Changed 15 years ago by jmoore
- Resolution set to fixed
- Status changed from new to closed
r5498 refactors the RTypes object factory registration. I never reproduced the issue, so let me know if it persists.
From Bernhard:
Ex: