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
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
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.
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
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(