Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. AuxiliaryTask gLogTask;
  2. WriteFile gLogOut[NUM_LOGS];
  3. void process_log_background (void*);
  4. void process_log (WriteFile logOut[]);
  5.  
  6. bool setup(BelaContext *context, void *userData)
  7. {
  8. if ((gLogTask = Bela_createAuxiliaryTask (&process_log_background, 80, "log-writing")) == 0) return false;
  9. }
  10.  
  11. void process_log_background (void*) {
  12. process_log (gLogOut);
  13. }
  14.  
  15. void render(BelaContext *context, void *userData)
  16. {
  17. Bela_scheduleAuxiliaryTask (gLogTask);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement