Changes between Version 117 and Version 118 of library_stdio


Ignore:
Timestamp:
Sep 25, 2015, 11:20:01 AM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v117 v118  
    3434The ''pthread_t'' and ''pthread_attr_t'' types are defined in the [source:soft/giet_vm/giet_libs/stdio.h stdio.h] file.
    3535
    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 ) ===
     37This functions activates one thread that will execute the C function defined by the <function> argument.
    3838All 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.
     39The <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.
     40The 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.
    4242 * '''attr''' :  not supported in the current implementation / must be set to NULL.
    4343 * '''function''' : pointer on function
     
    464464 === 5) void '''giet_get_xy'''( void* ptr, unsigned int* px, unsigned int* py ) ===
    465465This 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