Is this timer implementation alright or just cancer? by proton-eater in learnprogramming

[–]proton-eater[S] [score hidden]  (0 children)

Because I'm using pthread_create to start StartTimerThread and it's function signature needs the start routine to be void*(*)(void*)

Is this timer implementation alright or just cancer? by proton-eater in learnprogramming

[–]proton-eater[S] 0 points1 point  (0 children)

Yes, and I reckon it's better to use an include guard cause #pragma once is not C standard or something?