[dmd-concurrency] draft 5
Robert Jacques
sandford at jhu.edu
Wed Jan 20 21:12:43 PST 2010
On Wed, 20 Jan 2010 21:27:29 -0500, Andrei Alexandrescu
<andrei at erdani.com> wrote:
> Robert Jacques wrote:
>> On Wed, 20 Jan 2010 01:36:10 -0500, Andrei Alexandrescu
>> <andrei at erdani.com> wrote:
>>
>>> Kevin Bealer wrote:
>>>> So the caller calls setMaxMailboxSize with a callee's Tid. Then that
>>>> caller will not send messages unless the callee's mailbox is smaller
>>>> than that amount?
>>>> Will all callers obey the limit, or should they each set their own
>>>> limit? If the latter, then the design is as I thought.
>>>
>>> Each thread has a mailbox. That mailbox has a capacity. That capacity
>>> can be set from any thread. It's that simple.
>>>
>>> Andrei
>> Bike shed but, what about: tid.capacity = N; ?
>
> Yah but sometimes one needs to also set the contingency action
> atomically.
>
> Andrei
I was actually think capacity would be a property and therefore support
atomicity.
More information about the dmd-concurrency
mailing list