Changes between Version 9 and Version 10 of library_malloc
- Timestamp:
- Mar 30, 2015, 5:10:52 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_malloc
v9 v10 20 20 == cluster selection == 21 21 22 The heap_init() function has to be called by one single task before using other malloc functions. 23 22 24 The malloc() and free() functions below have the same semantic as the standard UNIX functions. The cluster where the memory is allocated is implicitely defined by the (x,y) coordinate of the processor running the calling task. 23 25 … … 28 30 == Available functions == 29 31 32 * '''void heap_init( unsigned int x, unsigned int y ) 30 33 * '''void * malloc( unsigned int size ) 31 34 * '''void * remote_malloc( unsigned int size, unsigned int x, unsigned int y ) 32 * '''void free( void* ptr ) 35 * '''void free( void* ptr ) 36 33 37