aboutsummaryrefslogtreecommitdiff
path: root/src/util/scheduler.c
Commit message (Collapse)AuthorAge
...
* remove duplicate timeout checklurchi2018-01-16
| | | | | There's no need of checking for timeouts in GNUNET_SCHEDULER_task_ready, as the check is done in GNUNET_SCHEDULER_run_from_driver.
* remove unused variableslurchi2018-01-15
|
* gracefully accept empty FD set that claim to contain FDslurchi2018-01-10
|
* properly detect calling add_select without descriptors; simplify extract_handleslurchi2018-01-10
|
* fix scheduler when add_select is called with 0 ready fdsSchanzenbach, Martin2018-01-10
|
* fix dereferencing uninitialized rs/ws; assert non-NULL before dereferencing ↵lurchi2018-01-07
| | | | network/file handles
* Revert "fix dereferencing uninitialized pointer"lurchi2018-01-07
| | | | This reverts commit 201a67be13ae31b4eb7fb8ad38b349fe287c0baf.
* fix dereferencing uninitialized pointerlurchi2018-01-06
|
* simplify driver_add_multiplelurchi2018-01-04
|
* fix misc compiler warningsChristian Grothoff2018-01-04
|
* fix more warningsChristian Grothoff2018-01-04
|
* Fix memory leak in select_loopDavid Barksdale2018-01-01
|
* cleanuplurchi2017-09-04
|
* Fix select loop running conditionslurchi2017-09-04
| | | | | | | The select loop has to keep running as long as the driver has tasks available (indicating that there are file descriptors left to wait for) or the timeout is not FOREVER (indicating that the scheduler has tasks with timeout left).
* handles, not handlerslurchi2017-09-04
|
* remove scheduler->internal code from driver looplurchi2017-09-04
|
* Remove busy waiting checkslurchi2017-09-04
| | | | | | | | | | | Busy waiting should never happen (at least the shutdown pipe is always there for the driver to wait for). When busy waiting happens, i.e. GNUNET_SCHEDULER_run_from_driver is called without any task ready, it is a programming error (at least I don't know any valid use case for busy waiting). Hence, remove the busy waiting checks and let GNUNET_SCHEDULER_run_from_driver return GNUNET_SYSERR instead in this case.
* clarify documentation about adding / deleting taskslurchi2017-08-25
|
* Simplify driver callback del; fix shutdown logiclurchi2017-08-25
| | | | | | | | | The driver callback for deleting a task has been simplified: Now it is only possible to delete a task, not single FdInfos. A logic bug in GNUNET_SCHEDULER_cancel has been fixed (FD-related tasks need to be deleted from the driver, when they are already in the ready queue).
* fix behaviour of GNUNET_SCHEDULER_add_select on empty fdsetslurchi2017-08-24
| | | | | | if GNUNET_SCHEDULER_add_select is called with empty fdsets, the resulting task is now added to the pending_timeout queue instead of the pending queue. This way the driver will not know about the task.
* NULL-initialize array pointerslurchi2017-08-24
|
* cleanuplurchi2017-08-23
|
* GNUNET_SCHEDULER_check_lifeness not needed anymorelurchi2017-08-23
|
* tasks in the pending queue must be be checked for reached timeouts, too; ↵lurchi2017-08-23
| | | | allow multiple event types per FdInfo
* only allocate network / file handles and store them in the task when ↵lurchi2017-08-21
| | | | GNUNET_SCHEDULER_add_select is used
* implement bookkeeping about which FDs related to a tasks have been marked ↵lurchi2017-08-18
| | | | ready (required API change in GNUNET_SCHEDULER_task_ready)
* increasing length variable is already done by GNUNET_xgrow_ (called by the ↵lurchi2017-08-17
| | | | GNUNET_array_append macro)
* add buggy state of refactored GNUNET_SCHEDULER_add_selectlurchi2017-08-16
|
* reimplement init_fd_info as preparation for refactoring ↵lurchi2017-08-13
| | | | GNUNET_SCHEDULER_add_select
* fix off-by-one error that prevented reading from stdinlurchi2017-08-12
|
* init_fd_info now completely initializes fd information; Allow calling ↵lurchi2017-08-12
| | | | add/cancel functions only when the scheduler is running
* set fds_len in all cases; call set_wakeup only in two placeslurchi2017-08-11
|
* Revert "set fds_len in all cases; call set_wakeup only in two places"lurchi2017-08-11
| | | | This reverts commit 7d42c453fbb032ac8fb43c8e56bb84354ecedf2d.
* set fds_len in all cases; call set_wakeup only in two placeslurchi2017-08-11
|
* remove unnecessary set_wakup calllurchi2017-08-10
|
* fix compilation of debug code enabled by DEBUG_FDS; fix indentationlurchi2017-08-10
|
* cosmetic fixeslurchi2017-08-09
|
* test_scheduler passing; new API function GNUNET_SCHEDULER_check_lifenesslurchi2017-08-09
|
* lifeness checks; shutdown now working; checkSignal not passing yetlurchi2017-08-09
|
* fix initFdInfo; rename to init_fd_infolurchi2017-08-09
|
* fix indentation; remove unneeded set_wakeup calllurchi2017-08-09
|
* Merge branch 'refactoring-scheduler' of ssh://gnunet.org/gnunetlurchi2017-08-08
|\
| * Smaller changes. Changed order when set_wakeup is called after some task is ↵t3sserakt2017-08-08
| | | | | | | | removed from pending_timeout
* | separate the select driver's fd sets from the driver-internal fdsetslurchi2017-08-08
|/
* fix segfault and pending_timeout logiclurchi2017-08-05
|
* add missing DLL insertlurchi2017-08-05
|
* fix warningslurchi2017-08-05
|
* GNUNET_SCHEDULER_run is calling GNUNET_SCHEDULER_run_with_driver with the ↵t3sserakt2017-08-04
| | | | default select polling backend.
* Call to set_wakeup added after tasks added/removed to/from pending_timeoutt3sserakt2017-08-03
|
* Nearly finished. Call to set_wakeup missing in case of tasks added to ↵t3sserakt2017-08-02
| | | | pending_timeout