Skip to content

Instantly share code, notes, and snippets.

@benesch
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benesch/23aac97dfa2fc8f0e2e7 to your computer and use it in GitHub Desktop.
Save benesch/23aac97dfa2fc8f0e2e7 to your computer and use it in GitHub Desktop.
void SetPreemptionFrequency(int hz);
int GetAllTCBs(tcb_t *tcb_array_out);
int GetTCBStats(tcb_stat_t *tcb_array_out);
int UntypedRetype(mem, RunQueueCapability);
int SetRootRunqueue(CPtr runqueue);
int Untyped_Retype(untyped_t mem, int type, ...);
struct tcb_stat {
unsigned execution_nanoseconds;
unsigned preemptions;
}
typedef struct tcb_stat tcb_stat_t;
sendNB(CPtr aep, tcb_t waker);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment