Silverfrost Forums

Welcome to our forums

Are malloc and calloc thread-safe in SCC?

17 Nov 2025 4:40 #32483

Hi All,

I am wondering if SCC (Silverfrost C Compiler) makes malloc and calloc thread-safe. Do I need to add my own locking around memory allocation when using multiple threads?

Thanks!

Alejandro

18 Nov 2025 8:31 #32485

Silverfrost malloc calls GlobalAlloc which is thread-safe. There is no need for locking either internally (within malloc) or externally when calling it.

18 Nov 2025 2:20 #32487

Thank you for the clarification!

Please login to reply.