Why game freezes when running c source plugin ?

Hi, I made a plugin which runs a c source code, but when I call the functions, the game freezes until it executes the code and then resumes. How to fix that ? Thankyou