This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Reentrant Functions

Hi I need to know if either of the functions defined below is set up the right way to make it reentrant. They are both delay functions that will be called more than once at the same time. I think there is something wrong here.
thank you!

static void delay2 (void) small reentrant {
unsigned long w;

for (w = 0; w < 10; w++) {
;
}
}

OR

static void delay1 (unsigned long w) small reentrant {
unsigned long a;

for (a = 0; a < w; a++) {
;
}
}

0