#28 Support for running a function in a thread

1.0
closed
nobody
None
2014-03-05
2012-08-20
Christoph
No

I would remove the possiblity to run a function (pointer) in a thread directly from thelib. A thread then could only run runnables and nothing else. For function pointers, I think we could provide a special runnable that executes the function, but running a function is extremely hugly wrt. to the new termination behaviour we want to introduce.

Related

Tickets: #26

Discussion

  • SGrottel
    SGrottel
    2012-08-21

    Supporting runnables only is sufficient for now.

    For a later iterator we should think about supporting functors (for lambda expressions), but for now, I vote for only supporting runnable objects.

     
  • Christoph
    Christoph
    2012-08-21

    In this case, it would be "reasonably" safe to support forceful termination of threads, because we could call an event handler on the runnable.

     
  • SGrottel
    SGrottel
    2014-03-05

    I believe this ticket is obsolete after the thread redesign

     
  • SGrottel
    SGrottel
    2014-03-05

    • status: open --> closed