diff options
| author | Ben Pfaff <blp@nicira.com> | 2011-08-10 12:49:35 -0700 |
|---|---|---|
| committer | Ben Pfaff <blp@nicira.com> | 2011-08-15 09:49:15 -0700 |
| commit | 934264ec17192617f4acb1a4bb8a8e41d6b17b68 (patch) | |
| tree | 83e2337608a58a8662dfb7f5f406371e7a86fb13 /ofproto | |
| parent | 4ad2802695284467b559ca6790cd890359ffa159 (diff) | |
| download | openvswitch-934264ec17192617f4acb1a4bb8a8e41d6b17b68.tar.gz | |
poll-loop: Remove static variable n_waiters.
It's always a little risky to track the length of a list by hand, because
it is easy to miss a spot where the length can change. So it seems like
a small cleanup to just measure the length of the 'waiters' list at the
point where we need to know it. list_size() is O(n) in the length of the
list, but the function that calls it is already O(n) in that length so it
seems like a fair trade-off.
Diffstat (limited to 'ofproto')
0 files changed, 0 insertions, 0 deletions
