1. Jun 25, 2019
  2. Jun 22, 2019
  3. Jun 21, 2019
  4. Jun 20, 2019
  5. Jun 19, 2019
  6. Jun 18, 2019
  7. Jun 17, 2019
  8. Jun 03, 2019
  9. Mar 20, 2019
  10. Mar 19, 2019
  11. Mar 18, 2019
  12. Mar 16, 2019
    • Alberto Miranda's avatar
      Merge branch '29-task-descriptors-are-never-released' into 'master' · a2c6a205
      Alberto Miranda authored
      Resolve "Task descriptors are never released"
      
      Closes #29
      
      See merge request !13
      a2c6a205
    • Alberto Miranda's avatar
      Remove task descriptors when tasks complete · e14e29a6
      Alberto Miranda authored
      Calling norns(ctl)?_error() to query the status of a running task will
      release its descriptor in the server if the task already completed
      (NORNS_EFINISHED or NORNS_EFINISHEDWERROR). Since norns(ctl)?_wait()
      internally queries the task status to check whether a task has
      completed, we cache the retrieved task_status into the iotask_t user
      descriptor so that it can be retrieved by a subsequent
      norns(ctl)?_error() call.
      e14e29a6
    • Alberto Miranda's avatar
      Merge branch... · db83cc35
      Alberto Miranda authored
      Merge branch '28-norns_wait-nornsctl_wait-should-accept-a-second-parameter-to-specify-a-timeout' into 'master'
      
      Resolve "norns_wait()/nornsctl_wait() should accept a second parameter to specify a timeout"
      
      Closes #28
      
      See merge request !12
      db83cc35
    • Alberto Miranda's avatar
      Update tests with new API · 18708495
      Alberto Miranda authored
      18708495
    • Alberto Miranda's avatar
      Add timeout parameter to waiting functions · c484573c
      Alberto Miranda authored
      Functions norns_wait() and nornsctl_wait() now accept an optional
      const struct timespec *timeout (see nanosleep(2)) to allow users
      to suspend the calling thread until one of the following occurs:
      
      * A signal is delivered and the task has already completed.
      * The specified time interval has already passed.
      
      If timeout is NULL, the functions will suspend the thread for
      a predefined amount of time and query the server upon waking up.
      
      Note that since the server does not allow registering listeners at the
      moment, the thread will wake only when one of the aforementioned
      conditions has occurred, even if the task of interest has already finished.
      c484573c