Limited number of data elements from CustomDispatchSource.getData()

8 views
Skip to first unread message

Ricardo Padilha

unread,
Sep 8, 2011, 11:37:48 AM9/8/11
to hawtdispatch
Hi,

I'm implementing a very high concurrency server and I'm noticing that
for heavy loads a single CustomDispatchSource could accumulate a few
hundred events that are then collected all at once by a single thread
through getData().

Is there a way to limit the number of elements returned by getData(),
so that I can spread the load more evenly between threads?

Thanks,
Ricardo
Reply all
Reply to author
Forward
0 new messages