- endpt->Next = gUSB_PollQueues[endpt->PollingAtoms];
- gUSB_PollQueues[endpt->PollingAtoms] = endpt;
+ // TODO: Locking
+ {
+ int idx = giUSB_PollPosition + 1;
+ if(idx >= POLL_SLOTS) idx -= POLL_SLOTS;
+ LOG("idx = %i", idx);
+ endpt->Next = gUSB_PollQueues[idx];
+ gUSB_PollQueues[idx] = endpt;
+ }