clock_scheduler_main_callback   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm

Implementation

(bind-func clock_scheduler_main_callback
  (let ((hz:double 500.0)
        (evtlist:SchedEvt{double}* null)
        (ft:[void,double]* null)
        (scheduler:[i64,double]* null)
        (running:i64 1)
        (time 0.0)
        (err 0)
        (i (/ 1.0 hz)))
    (lambda ()
      (set! scheduler (scheduler_init evtlist ft))
      (set! time (clock_clock))
      (while (> running 0)
        (scheduler time)
        (while (< (clock_clock) time) (thread_sleep 0 100000))
        (set! time (+ time i))
        void)
      void)))


Back to Index

Similar Entries

  • -clock:metro-from-host-    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • -clock:metro-from-host-    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • PaStreamCallbackTimeInfo_print    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portaudio.xtm
  • PaStreamCallbackTimeInfo_toString    xtlang    /digego/extempore/tree/v0.8.9/libs/external/portaudio.xtm
  • _glib_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/slideshow.xtm
  • _glib_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • _glib_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo.xtm
  • _gst_main_loop_call    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mediaplayer.xtm
  • arrows_clockspin_heads    xtlang    /digego/extempore/tree/v0.8.9/examples/external/shader-tutorials/arrows.xtm
  • audio_callback:PaStreamCallback    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/portaudio.xtm
  • audio_callback:PaStreamCallback    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/portaudio.xtm
  • beat_scheduler    xtlang    /digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm
  • callback    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • callback-adapter    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • callback-test2-helper    xtlang    /digego/extempore/tree/v0.8.9/tests/core/xtlang.xtm
  • callback_goodbye_world    xtlang    /digego/extempore/tree/v0.8.9/examples/external/ulfius.xtm
  • callback_hello_world    xtlang    /digego/extempore/tree/v0.8.9/examples/external/ulfius.xtm
  • cerberus_main_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/cerberus_midi.xtm
  • clock->samples    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • clock-client-receive    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • clock-runsync    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • clock-server-receive    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • clock-set-bpm    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • clock-set-cycle    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • clock:offset-from-server    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • clock:sync-adjust    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • clock:update-metro    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • clock:update-metro    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • clock_scheduler    xtlang    /digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm
  • clock_test_a    xtlang    /digego/extempore/tree/v0.8.9/examples/core/scheduler.xtm
  • clock_test_b    xtlang    /digego/extempore/tree/v0.8.9/examples/core/scheduler.xtm
  • curl_write_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/external/curl.xtm
  • decompose_domain    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/random-walk.xtm
  • get_main_frame    xtlang    /digego/extempore/tree/v0.8.9/libs/external/cef/cef.xtm
  • get_midi_evt_clocktime    xtlang    /digego/extempore/tree/v0.8.9/libs/external/midi.xtm
  • glfw_char_callback:GLFWcharfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_cursor_position_callback:GLFWcursorposfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_error_callback:GLFWerrorfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_key_callback:GLFWkeyfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_mouse_button_callback:GLFWmousebuttonfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_window_focus_callback:GLFWwindowfocusfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glfw_window_position_callback:GLFWwindowposfun    xtlang    /digego/extempore/tree/v0.8.9/libs/external/glfw3.xtm
  • glib-main-loop    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/slideshow.xtm
  • glib-main-loop    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo_multi.xtm
  • glib_main_loop    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/gstvideo.xtm
  • gst-main-loop    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/mediaplayer.xtm
  • gui_window_size_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/external/gui.xtm
  • impc:ir:compiler:callback    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmir.xtm
  • impc:ti:callback    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • impc:ti:callback-check    scheme    /digego/extempore/tree/v0.8.9/runtime/llvmti.xtm
  • join-clock-time    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • listener-callback    scheme    /digego/extempore/tree/v0.8.9/examples/contrib/nanomsg.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/core/fasta_lang_shootout.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/core/nbody_lang_shootout.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/opencl.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/80211.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/mpitest.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/send-recv.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/random-walk.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/hello-world.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/reduce-average.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/mpi/ping-pong.xtm
  • main    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/extempore-fortran/simulation.xtm
  • mainLoop    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/horde3d_knight.xtm
  • mainLoop    xtlang    /digego/extempore/tree/v0.8.9/examples/contrib/bullet.xtm
  • main_cc    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/analogue_midi.xtm
  • main_gain    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • main_reverb    xtlang    /digego/extempore/tree/v0.8.9/examples/sharedsystem/audiosetup.xtm
  • rtmidi_default_callback:RtMidiCCallback    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/rtmidi.xtm
  • rtmidi_register_callback    xtlang    /digego/extempore/tree/v0.8.9/libs/contrib/rtmidi.xtm
  • run_main_event_loop    xtlang    /digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm
  • samples->clock    scheme    /digego/extempore/tree/v0.8.9/runtime/scheme.xtm
  • scheduler_at    xtlang    /digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm
  • scheduler_evt    xtlang    /digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm
  • scheduler_init    xtlang    /digego/extempore/tree/v0.8.9/libs/core/scheduler.xtm
  • set_dl_main    xtlang    /digego/extempore/tree/v0.8.9/libs/core/instruments/dlogue.xtm
  • split-clock-time    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • start_midi_scheduler    xtlang    /digego/extempore/tree/v0.8.9/libs/external/midi.xtm
  • topclock-bpm    scheme    /digego/extempore/tree/v0.8.9/libs/core/topclock.xtm
  • topclock-election    scheme    /digego/extempore/tree/v0.8.9/libs/core/topclock.xtm
  • topclock-receive    scheme    /digego/extempore/tree/v0.8.9/libs/core/topclock.xtm
  • topclock-streamer    scheme    /digego/extempore/tree/v0.8.9/libs/core/topclock.xtm
  • topclock-sync    scheme    /digego/extempore/tree/v0.8.9/libs/core/topclock.xtm
  • topclock-variable    scheme    /digego/extempore/tree/v0.8.9/libs/core/topclock.xtm
  • toplap-clock-election    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm
  • toplap-clock-sync    scheme    /digego/extempore/tree/v0.8.9/libs/core/toplap_clock.xtm