Thread overview |
---|
May 13, 2015 pthread and GC | ||||
---|---|---|---|---|
| ||||
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 Re: pthread and GC | ||||
---|---|---|---|---|
| ||||
Posted in reply to tcak | 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 Re: pthread and GC | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dicebot | 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.
|
Copyright © 1999-2021 by the D Language Foundation