comp.lang.ada
 help / color / mirror / Atom feed
* Launching background job from Ada.Real_Time.Timing_Events
@ 2016-05-24 14:22 Alejandro R. Mosteo
  2016-05-24 14:39 ` Mark Lorenzen
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Alejandro R. Mosteo @ 2016-05-24 14:22 UTC (permalink / raw)


Hello all,

I'm stuck with something not that strange, so I guess I need another 
viewpoint on it.

I want to trigger, in the future, a possibly long computation in the 
background. For that I had thought of using the built-in Real_Time events.

My idea was to queue the job when the event is triggered, and to have a 
worker thread waiting for jobs in the queue. However, I've just realized 
that the event handler is itself a protected action, so I can't call 
another potentially blocking enqueue from there.

Any ideas? Basically, how to trigger another task (without creating it) 
from within a protected handler?

Thanks,
Alex.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-06-03 12:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-24 14:22 Launching background job from Ada.Real_Time.Timing_Events Alejandro R. Mosteo
2016-05-24 14:39 ` Mark Lorenzen
2016-05-24 15:06   ` Alejandro R. Mosteo
2016-05-24 22:21   ` Jeffrey R. Carter
2016-06-02 21:13     ` Alejandro R. Mosteo
2016-06-02 23:16       ` Jeffrey R. Carter
2016-05-24 23:52 ` Jeffrey R. Carter
2016-06-02 21:22   ` Alejandro R. Mosteo
2016-05-25  7:23 ` Dmitry A. Kazakov
2016-06-02 21:25   ` Alejandro R. Mosteo
2016-06-03  7:26     ` Dmitry A. Kazakov
2016-06-03 10:03       ` Alejandro R. Mosteo
2016-06-03 12:15         ` Dmitry A. Kazakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox