Changes between Version 107 and Version 108 of library_stdio
- Timestamp:
- Sep 15, 2015, 12:38:15 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v107 v108 49 49 === 2) void '''giet_pthread_exit'''( void* string ) === 50 50 This function desactivates the calling thread. 51 The 'string' argument is a (user defined) log message displayed on the kernel TTY. 52 No error possible. 51 The 'string' argument is a (user defined) log message displayed on the kernel TTY0. 53 52 54 53 === 3) int '''giet_pthread_join'''( pthread_t trdid , void** ptr ) === … … 63 62 64 63 === 4) int '''giet_pthread_kill'''( pthread_id trdid , int signal ) === 65 This function deactivates the thread identified by the ''trdid'' argument when the ''signal'' argument is non zero. 66 If the ''signal'' argument is zero, the thread existence is checked, but it is not deactivated. 64 This function send a KILL signal to the thread identified by the ''trdid'' argument when the ''signal'' argument is non zero, 65 and the thread will be deactivated at the next context switch. 66 If the ''signal'' argument is zero, the thread existence is checked, but the KILL signal it is not sent. 67 67 * trdid : unique thread identifier in vspace. 68 68 * signal : deactivation if non zero. … … 72 72 === 5) void '''giet_pthreadt_yield'''() === 73 73 The thread calling this function is descheduled and the processor is allocated to another thread. 74 No error possible.75 74 76 75 === 6) void '''giet_pthread_assert'''( unsigned int condition, char* string ) === … … 78 77 * condition : thread exit if condition value is 0. 79 78 * string : message displayed on TTY0. 80 No error possible.81 82 79 83 80 … … 86 83 === 1) void '''giet_kill_application'''( char* name ) === 87 84 This function kill the application identified by the vspace '''name''' argument: 88 All tasks are de-activated, the private peripherals or coprocessors are released, but the physical memory 89 allocated to the killed application is not released. 85 All application threads defined in the mapping receive a KILL signal and will be deactivated at the next context switch. The private peripherals or coprocessors are released. The physical memory allocated to the killed application segments is not released. 90 86 91 87 === 2) void '''giet_exec_application'''( char* name ) === 92 This function starts execution for the the application identified by the vspace '''name''' argument :93 The application code and data segment areloaded into memory from the .elf file.94 All tasks contexts are initialized, and the tasks areactivated.88 This function starts execution for the the application identified by the vspace '''name''' argument. 89 The application data segments are (re)loaded into memory from the .elf file. 90 Only thread that has the ''is_main'' flag set in the mapping is activated. 95 91 96 92