aboutsummaryrefslogtreecommitdiff
path: root/ovsdb/trigger.c
AgeCommit message (Collapse)Author
2010-10-01Switch many macros from using CONTAINER_OF to using OBJECT_CONTAINING.Ben Pfaff
These macros require one fewer argument by switching, which makes code that uses them shorter and more readable.
2010-05-26poll-loop: New function poll_timer_wait_until().Ben Pfaff
Many of poll_timer_wait()'s callers actually want to wait until a specific time, so it's convenient for them to offer a function that does this.
2010-05-26poll-loop: Change poll_timer_wait() parameter from "int" to "long long".Ben Pfaff
Every so often I get concerned because OVS does most of its time arithmetic in "long long int" but poll_timer_wait() takes an "int", so there is potential for truncating a large value to a small value or a positive value to a negative value. That would cause excessive wakeups and possibly 100% CPU usage. This commit therefore changes poll_timer_wait()'s parameter type from "int" to "long long int". The file-scope 'timeout' variable remains type "int" because that is the type of poll()'s timeout argument. Factoring poll_timer_wait() into two functions is not necessary here but it comes in handy in the following patch.
2009-11-04Initial implementation of OVSDB.Ben Pfaff