Skip to content

Commit

Permalink
Update delay body generator to new token API
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Jan 15, 2023
1 parent 16904fc commit 3bfbf2d
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,10 @@ public String generateDelayBody(Action action, VarRef port) {
"// Need to lock the mutex first.",
"lf_mutex_lock(&mutex);",
"#endif",
"lf_token_t* t = create_token(sizeof(PyObject*));",
"lf_token_t* t = _lf_new_token((token_type_t*)"+action.getName()+", self->_lf_"+ref+"->value, 1);",
"#if NUMBER_OF_WORKERS > 0",
"lf_mutex_unlock(&mutex);",
"#endif",
"t->value = self->_lf_"+ref+"->value;",
"t->length = 1; // Length is 1",
"",
"// Pass the token along",
"lf_schedule_token("+action.getName()+", 0, t);"
Expand Down

0 comments on commit 3bfbf2d

Please sign in to comment.