Changeset 656 for trunk/user/transpose


Ignore:
Timestamp:
Dec 6, 2019, 12:07:51 PM (5 years ago)
Author:
alain
Message:

Fix several bugs in the FATFS and in the VFS,
related to the creation of big files requiring
more than 4 Kbytes (one cluster) on device.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user/transpose/transpose.c

    r652 r656  
    154154////////////////////////////////////////////////////////////////
    155155
    156 void execute( pthread_parallel_work_args_t * args );
     156void * execute( void * arguments );
    157157
    158158void instrument( FILE * f , char * filename );
    159159
    160 /////////////////
    161 void main( void )
     160////////////////
     161int main( void )
    162162{
    163163    unsigned long long start_cycle;
     
    586586    exit( 0 );
    587587   
     588    return 0;
     589
    588590} // end main()
    589591
     
    591593
    592594
    593 ///////////////////////////////////////////////////
    594 void execute( pthread_parallel_work_args_t * args )
     595//////////////////////////////////
     596void * execute( void * arguments )
    595597{
    596598    unsigned long long   date;
     
    598600    unsigned int l;                         // line index for loop
    599601    unsigned int p;                         // pixel index for loop
     602
     603    pthread_parallel_work_args_t * args = (pthread_parallel_work_args_t *)arguments;
    600604
    601605    // WARNING
     
    813817    if( PARALLEL_PLACEMENT )   
    814818    {
    815         // <work> threads are runing in detached mode
     819        // <work> threads are runing in detached mode, and
    816820        // each thread must signal completion by calling barrier
    817821        // passed in arguments before exit
     
    827831        if ( tid != tid_main )  pthread_exit( &THREAD_EXIT_SUCCESS );
    828832    }
     833
     834    return NULL;
    829835
    830836} // end execute()
Note: See TracChangeset for help on using the changeset viewer.