Make setMaxMailboxSize a property of a Tid?

2011-11-17 Thread Andrej Mitrovic
I've had this bug recently: auto workTid = spawn(&work); setMaxMailboxSize(thisTid, 1, OnCrowding.throwException); IOW, I've passed 'thisTid' instead of 'workTid' to the call. Is there any reason why had to be a global function? Tid has a private MessageBox w

Re: setMaxMailboxSize

2010-06-18 Thread Lars T. Kyllingstad
On Thu, 17 Jun 2010 21:31:10 +, Byron Heads wrote: > is setMaxMailboxSize not implemented yet or is it bugged? It seems it got implemented today. :) http://www.dsource.org/projects/phobos/changeset/1662 You can use the SVN version of Phobos, or wait for the next release. -Lars

Re: setMaxMailboxSize

2010-06-17 Thread torhu
On 17.06.2010 23:31, Byron Heads wrote: is setMaxMailboxSize not implemented yet or is it bugged? It's just an empty function currently. If you want to see for yourself, it's in dmd2/src/phobos/std/concurrency.d.

Re: setMaxMailboxSize

2010-06-17 Thread Byron Heads
On Thu, 17 Jun 2010 21:31:10 +, Byron Heads wrote: > is setMaxMailboxSize not implemented yet or is it bugged? > This is a little better example of it not working: import core.sys.posix.unistd; import std.stdio, std.concurrency, std.random; enum MAX = 1; voi

setMaxMailboxSize

2010-06-17 Thread Byron Heads
is setMaxMailboxSize not implemented yet or is it bugged? This test program does not work right: import core.sys.posix.unistd; import std.stdio, std.concurrency, std.random; void main() { auto a = spawn( &bar, thisTid ); setMaxMailboxSize(