lRem has asked for the wisdom of the Perl Monks concerning the following question:
But this creates problems. It happened to die with: *** glibc detected *** double free or corruption (fasttop): 0xb7e8d7d8 ***. It also sometimes happens, that the draw sub gets malformed args, what hasn't happened since months. But ultimately, even if everything ticks otherwise, after executing draw a few times the program just exits without goodbye! Now I don't know, is it something fundamental that I've missed, or the draw function somehow isn't thread safe, or ufo decided to disturb me.use threads; ... threads->create(\&draw, arg1, arg2, ...)->detach(); ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running subs ,,in background''
by Anonymous Monk on Nov 23, 2005 at 23:18 UTC | |
by lRem (Scribe) on Nov 24, 2005 at 10:31 UTC | |
|
Re: Running subs ,,in background''
by Perl Mouse (Chaplain) on Nov 23, 2005 at 20:54 UTC | |
by lRem (Scribe) on Nov 23, 2005 at 21:43 UTC | |
|
Re: Running subs ,,in background''
by Old_Gray_Bear (Bishop) on Nov 23, 2005 at 20:51 UTC | |
|
Re: Running subs ,,in background''
by Moriarty (Abbot) on Nov 24, 2005 at 00:04 UTC | |
by lRem (Scribe) on Nov 24, 2005 at 08:17 UTC | |
|
Re: Running subs ,,in background''
by GrandFather (Saint) on Nov 23, 2005 at 20:48 UTC | |
|
Re: Running subs ,,in background''
by crenz (Priest) on Nov 30, 2005 at 16:04 UTC |