Menu

#43 [DevkitARM] newlib and locking

closed
nobody
devkitARM (6)
5
2016-11-15
2010-06-21
No

It is possible "__syscalls_t" to expand with the following functions (like devkitPPC)

int (lock_init) (int lock,int recursive);
int (lock_close) (int lock);
int (lock_release) (int lock);
int (lock_acquire) (int lock);
void (malloc_lock) (struct _reent ptr);
void (malloc_unlock) (struct _reent ptr);

This gives an external multithreading-library a chance to support this locking stuff

The malloc_lock stuff can be easy overwritten with own functions (malloc_lock & malloc_unlock). Because newlib calls real functions.
But the other lockings can ba not overwritten, because sys/lock.h contains only dummy macros

Discussion

  • Dave Murphy

    Dave Murphy - 2016-11-15
    • status: open --> closed
    • Group: --> Next_Release_(example)
     
  • Dave Murphy

    Dave Murphy - 2016-11-15

    This eventually happened with devkitARM r45

     

Log in to post a comment.