"is memcpy process-safe?" Code Answer

5

memcpy is typically coded for raw speed. it will not be thread safe. if you require this, you need to perform the memcpy call inside of a critical section or use some other semaphor mechanism.

take_mutex(&mutex);
memcpy(dst, src, count);
yield_mutex(&mutex);
By EfForEffort on February 26 2022

Answers related to “is memcpy process-safe?”

Only authorized users can answer the Search term. Please sign in first, or register a free account.