Re-enable malloc_lock for newlib-nano
Re-enable the use of __malloc_lock and __malloc_unlock newlib-nano, tied the newlib-multithread.
This commit is contained in:
parent
747b3f44e3
commit
2665915cfc
|
@ -58,9 +58,8 @@
|
|||
#define RCALL reent_ptr,
|
||||
#define RONECALL reent_ptr
|
||||
|
||||
/* Disable MALLOC_LOCK so far. So it won't be thread safe */
|
||||
#define MALLOC_LOCK /*__malloc_lock(reent_ptr) */
|
||||
#define MALLOC_UNLOCK /*__malloc_unlock(reent_ptr) */
|
||||
#define MALLOC_LOCK __malloc_lock(reent_ptr)
|
||||
#define MALLOC_UNLOCK __malloc_unlock(reent_ptr)
|
||||
|
||||
#define RERRNO reent_ptr->_errno
|
||||
|
||||
|
|
Loading…
Reference in New Issue