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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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?