[libdispatch-dev] Queue size

Dave Zarzycki zarzycki at apple.com
Thu Oct 7 06:10:28 PDT 2010

On Oct 7, 2010, at 8:35 AM, Thomas Clement wrote:

>> Queues cannot have variable widths - it's either 1 or "infinite".  That idea was considered but ultimately dropped given that it only made submitting things to queues even less deterministic in terms of where/how they would run, and there is already a way (again, semaphores) to get that behavior, so this would have only added complexity to all queues for little overall gain.
> I'm confused. What about the dispatch_queue_set_width() private function?
> Isn't this already implemented and functional?

"Implemented and functional" is not the bar we use for making an API publicly available. It also has to be sustainable and supportable.

Unfortunately, dispatch_queue_set_width() fails at the latter goals. That API encourages bad design, and practically speaking, it was only created so that developers can workaround underlying bugs (latent serialization). We'd much rather see developers fix (or file bugs) against the underlying problems than see a hierarchy of long term bandaids and workarounds be created.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-dev/attachments/20101007/802bc140/attachment.html>

More information about the libdispatch-dev mailing list