daily pastebin goal
51%
SHARE
TWEET

Untitled

a guest May 16th, 2018 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int do_setsjf() { /* sjf_2018 */
  2.   int expected_time = m_in.m1_i1;
  3.   printf("[SETSJF] Test, expected_time = %d\n", expected_time);
  4.   message m;
  5.  
  6.   m.m1_i1 = mp->mp_endpoint;
  7.   m.m1_i2 = expected_time;
  8.  
  9.   int rv;
  10.  
  11.   if ((rv = _taskcall(mp->mp_scheduler, SCHEDULING_SET_SJF, &m))) {
  12.         return rv;
  13.     }
  14.  
  15.   return 0; // TODO: RETURN VALUE
  16. }
RAW Paste Data
Top