Layout::get_pixel_size() race condition?

Dear all,

I develop a plotting library that uses cairomm and pangomm directly.
The library is multithreaded and seems to sometimes cause a race
condition to occur, which results in a segmentation fault. When I
start two threads very soon after each other the a segmentation fault
often occurs, while starting the threads with a pause in between
doesn't cause any crashes. This always happens when the two threads
access Layout::get_pixel_size().

Does anyone know if this is a known problem? And/or has any tips :)

Cheers, Edwin

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]