Originally Posted By: Aku_Aku
My program works like this:
Code:
main() {
  while(1) {
     myfunc();
     wait_for(myfunc);
     wait(1);
  }
}

void myfunc() {
  do some writes into the file
}



Because there are a lot of activity in my program i am afraid the queue with functions waiting processing will increased seconds by seconds.
in this case i'd just call the function from itself

Code:
void myfunc(){
  //do stuff file writing
  wait(1);
  myfunc();
}

void main(){
  myfunc();
}

hope this helps