J
Joris Dobbelsteen
I need some thread-safe way of dispatching frames (or packets).
Basically I have one thread getting the frames and it now needs to dispatch
these.
Because it must not be to simple:
Each destination (0..254) can have:
a) none attached to it (drop the frame)
b) a listener attached which is there to stay (needs to receive in order,
queued)
these come quite frequently
c) a listener interested in a single packet and then leaves
these come in as a response, so they are off the critical path
This one is usually part of a send/receive cycle.
Some constraints would be that:
1) There might be one listener per destination
2) Only N send/receives might be outstanding (secondary constraint, not too
interesting actually)...
3) No polling, but signalling only...
I need the dispatcher to be very low-latency when dispatching. Adding /
Removing the temporary filter is off the critical path.
Anyone know a good way to archive this?
- Joris
Basically I have one thread getting the frames and it now needs to dispatch
these.
Because it must not be to simple:
Each destination (0..254) can have:
a) none attached to it (drop the frame)
b) a listener attached which is there to stay (needs to receive in order,
queued)
these come quite frequently
c) a listener interested in a single packet and then leaves
these come in as a response, so they are off the critical path
This one is usually part of a send/receive cycle.
Some constraints would be that:
1) There might be one listener per destination
2) Only N send/receives might be outstanding (secondary constraint, not too
interesting actually)...
3) No polling, but signalling only...
I need the dispatcher to be very low-latency when dispatching. Adding /
Removing the temporary filter is off the critical path.
Anyone know a good way to archive this?
- Joris