Can any body help me to modifiy this codes, Every time I debug, the process terminated when calling memset().
Could you all give me sample code for using InterruptLock() and InterruptUnlock() functions.?
Can any body help me to modifiy this codes, Every time I debug, the process terminated when calling memset().
Could you all give me sample code for using InterruptLock() and InterruptUnlock() functions.?
Or declare as a normal variable instead of a pointer. Spinlock are really small and not worth the overhead of malloc. Plus you don’t need to check for null pointers.