void UpdatePollMap() { if (!poll_dirty) { return; } poll_dirty = false; pollmap = new Pollfd [descriptorWatchers.Count]; int i = 0; foreach (var fd in descriptorWatchers.Keys) { pollmap [i].fd = fd; pollmap [i].events = MapCondition(descriptorWatchers [fd].Condition); Widget.Log("Got {0} from {1}", pollmap [i].events, descriptorWatchers [fd].Condition); } }