LinkTerminated without linked thread?

Stephan stephan_schiffels at mac.com
Thu Jan 24 23:33:55 PST 2013


On Friday, 25 January 2013 at 01:13:59 UTC, monarch_dodra wrote:
>
> I'll try to reproduce, but I'm 90% sure my reduced code was 
> this:
>
> //----
> void worker(Tid owner)
> {
>   owner.send(1);
> }
>
> void main()
> {
>     spawnLinked(&worker, thisTid);
>     receive(
>         (int a){}
>     );
> }
> //----
> And it (50% of the time) terminated in a LinkTerminated 
> exception being thrown.
>
> Any quick thoughts? I'll investigate on my end depending on 
> your explanation.


Nope. That code works 100% for me.

Stephan


More information about the Digitalmars-d mailing list