Changes between Version 117 and Version 118 of library_stdio
- Timestamp:
- Sep 25, 2015, 11:20:01 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v117 v118 34 34 The ''pthread_t'' and ''pthread_attr_t'' types are defined in the [source:soft/giet_vm/giet_libs/stdio.h stdio.h] file. 35 35 36 === 1) int '''giet_pthread_create'''( pthread_t* buffer, pthread_attr_t* attr , void* function , void* arg ) ===37 This functions activates one thread that will execute the C function defined by the ''function''argument.36 === 1) int '''giet_pthread_create'''( pthread_t* trdid , pthread_attr_t* attr , void* function , void* arg ) === 37 This functions activates one thread that will execute the C function defined by the <function> argument. 38 38 All thread activated by this system call must have been defined in the application mapping. 39 The ''attr'' argument (pthread attributes) is not supported, and should be set to NULL: The stack size must be defined in the mapping, and the pthread is activated in attached mode. In the current implementation, the ''arg'' argument (argument to be passed to ''function'') is not supported, and should be set to NULL.40 The thread identifier stored in the ''buffer'' argument by the kernel is unique in a given space: It is actually build from the 4 following informations : [x,y,p,ltid],where x,y,p are the processor coordinates, and ltid is the thread index in the scheduler.41 * ''' buffer''' : pointer on a buffer that will contain the activated thread identifier.39 The <attr> argument (pthread attributes) is not supported, and should be set to NULL: The stack size must be defined in the mapping, and the pthread is activated in ''attached'' mode. In the current implementation, the <arg> argument (argument to be passed to the function) is not supported, and should be set to NULL. 40 The thread identifier stored in the <trdid> argument by the kernel is unique in a given space: It is actually build from the 4 following informations : [x,y,p,ltid] where x,y,p are the processor coordinates, and ltid is the thread index in the scheduler. 41 * '''trdid''' : pointer on a buffer that will contain the activated thread identifier. 42 42 * '''attr''' : not supported in the current implementation / must be set to NULL. 43 43 * '''function''' : pointer on function … … 464 464 === 5) void '''giet_get_xy'''( void* ptr, unsigned int* px, unsigned int* py ) === 465 465 This function returns through the <px> and <py> arguments the coordinates of the cluster containing the physical address associated to the <ptr> argument containing a virtual address. In case of error (unmapped virtual address), the calling thread exit. 466