www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - pthread and GC

reply "tcak" <tcak gmail.com> writes:
I am using pthread somewhere in program, and it creates an 
object. After a while, I see "core.thread.scanAllTypeImpl" error 
on gdb. Does this mean that pthread and GC are incompatible? Any 
solution without making too much code changes?
May 13 2015
parent reply "Dicebot" <public dicebot.lv> writes:
On Wednesday, 13 May 2015 at 07:04:39 UTC, tcak wrote:
 I am using pthread somewhere in program, and it creates an 
 object. After a while, I see "core.thread.scanAllTypeImpl" 
 error on gdb. Does this mean that pthread and GC are 
 incompatible? Any solution without making too much code changes?
Does http://dlang.org/phobos/core_thread.html#.thread_attachThis help?
May 13 2015
parent "tcak" <tcak gmail.com> writes:
On Wednesday, 13 May 2015 at 07:29:51 UTC, Dicebot wrote:
 On Wednesday, 13 May 2015 at 07:04:39 UTC, tcak wrote:
 I am using pthread somewhere in program, and it creates an 
 object. After a while, I see "core.thread.scanAllTypeImpl" 
 error on gdb. Does this mean that pthread and GC are 
 incompatible? Any solution without making too much code 
 changes?
Does http://dlang.org/phobos/core_thread.html#.thread_attachThis help?
That scanAllTypeImpl problem was solved, but then unexpected stoppages have started. Undefined behaviours are available maybe. I needed to turn to Thread class again.
May 13 2015