Thread overview
pthread and GC
May 13, 2015
tcak
May 13, 2015
Dicebot
May 13, 2015
tcak
May 13, 2015
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
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
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.