Changes between Version 122 and Version 123 of library_stdio


Ignore:
Timestamp:
Oct 2, 2015, 2:17:13 AM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v122 v123  
    7676
    7777 === 6) void '''giet_pthread_assert'''( unsigned int condition, char* string ) ===
    78 This function is an extension to the POSIX standard. It send a KILL signal and deactivates immediately the calling thread (as does the giet_pthread_exit() function), with a TTY0 message defined by the <string> argument if the <condition> argument has a zero value.
     78This function is an extension to the POSIX standard. It send a KILL signal and deactivates immediately the calling thread (as does the giet_pthread_exit() function), with a  message on
     79the kernel TTY0,  if the <condition> argument has a zero value. The message is defined by the <string> argument.
    7980 * '''condition''' : thread exit if condition value is 0.
    8081 * '''string''' : message displayed on TTY0.
    8182
    82  === 7) int '''giet_pthread_pause'''( char* vspace , char* thread ) ===
    83 This function is an extension to the POSIX standard. It deactivates the thread identified by the <vspace> and <thread> arguments. The target thread goes to the ''blocked'' state at the next context switch, and will not be scheduled until the thread is reactivated by the giet_pthread_resume() function. The thread context (including the resources dynamically allocated to the thread) is not modified.
     83 === 7) void '''giet_pthread_control'''( unsigned int command , char* vspace , char* thread ) ===
     84This function is an extension to the POSIX standard. It execute the command defined by the<command> argument for  the thread identified by the <vspace> and <thread> arguments.
     85 * '''command''' : command type.
    8486 * '''vspace''' : vspace name.
    8587 * '''thread''' : thread name in mapping.
    86 Return 0 if success.
    87 Return -1 if vspace name not found.
    88 Return -2 if thread name not found.
    89 
    90  === 8) int '''giet_pthread_resume'''( char* vspace , char* thread ) ===
    91 This function is an extension to the POSIX standard. It  reactivates a thread identified by the <vspace> and <thread> arguments, that was descheduled by the giet_pthread_pause() function. The target thread goes to the ''runable'' state, and can be rescheduled at the next context switch to resume execution.
    92  * '''vspace''' : vspace name.
    93  * '''thread''' : thread name in mapping.
    94 Return 0 if success.
    95 Return -1 if vspace name not found.
    96 Return -2 if thread name not found.
     88The supported command types are:
     89 * '''THREAD_CMD_PAUSE''' : The target thread is deactivated. It goes immediately to the ''blocked'' state, and will not be scheduled until the thread is reactivated. The thread context (including the resources dynamically allocated to the thread) is not modified.
     90 * '''THREAD_CMD_RESUME''' : The target thread is reactivated. It goes immediately to the ''runable'' state, and can be rescheduled at the next context switch to resume execution.
     91 * '''THREAD_CMD_CONTEXT''' : Display the context of the target thread on the TTY allocated to the calling thread.
    9792
    9893