digitalmars.D.learn - std.concurrency.setMaxMailboxSize
- RazvanN (9/9) Oct 11 2017 Hi all,
- rikki cattermole (4/15) Oct 11 2017 Main controlling thread setting child threads?
- RazvanN (4/21) Oct 11 2017 Shouldn't the thread be in charge of its mailbox size? Otherwise,
- rikki cattermole (3/24) Oct 11 2017 Callee, versus caller. Just depends how you're thinking of the
Hi all, I have seen that the concurrency api has this method specified in $title [1] and I was wondering what is the use of it? Enabling threads to modify the message box of other threads doesn't seem to be a good idea and I can't think of any real use case. Best regards, RazvanN [1] https://dlang.org/phobos/std_concurrency.html#.setMaxMailboxSize
Oct 11 2017
On 11/10/2017 12:09 PM, RazvanN wrote:Hi all, I have seen that the concurrency api has this method specified in $title [1] and I was wondering what is the use of it? Enabling threads to modify the message box of other threads doesn't seem to be a good idea and I can't think of any real use case. Best regards, RazvanN [1] https://dlang.org/phobos/std_concurrency.html#.setMaxMailboxSizeMain controlling thread setting child threads? Otherwise I don't remember the last time it was mentioned, so I'd say leave it be :)
Oct 11 2017
On Wednesday, 11 October 2017 at 11:26:11 UTC, rikki cattermole wrote:On 11/10/2017 12:09 PM, RazvanN wrote:Shouldn't the thread be in charge of its mailbox size? Otherwise, main can pass the max size in the constructor.Hi all, I have seen that the concurrency api has this method specified in $title [1] and I was wondering what is the use of it? Enabling threads to modify the message box of other threads doesn't seem to be a good idea and I can't think of any real use case. Best regards, RazvanN [1] https://dlang.org/phobos/std_concurrency.html#.setMaxMailboxSizeMain controlling thread setting child threads? Otherwise I don't remember the last time it was mentioned, so I'd say leave it be :)
Oct 11 2017
On 11/10/2017 12:43 PM, RazvanN wrote:On Wednesday, 11 October 2017 at 11:26:11 UTC, rikki cattermole wrote:Callee, versus caller. Just depends how you're thinking of the responsibility. You can make arguments either way.On 11/10/2017 12:09 PM, RazvanN wrote:Shouldn't the thread be in charge of its mailbox size? Otherwise, main can pass the max size in the constructor.Hi all, I have seen that the concurrency api has this method specified in $title [1] and I was wondering what is the use of it? Enabling threads to modify the message box of other threads doesn't seem to be a good idea and I can't think of any real use case. Best regards, RazvanN [1] https://dlang.org/phobos/std_concurrency.html#.setMaxMailboxSizeMain controlling thread setting child threads? Otherwise I don't remember the last time it was mentioned, so I'd say leave it be :)
Oct 11 2017