Ignore:
Timestamp:
Oct 11, 2015, 6:23:18 PM (9 years ago)
Author:
alain
Message:

Adapt the router application to the POSIX API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/classif/classif.c

    r708 r720  
    546546    giet_proc_xyp( &x_id , &y_id , &p_id );
    547547
    548     // get & check plat-form parameters
     548    // get plat-form parameters
    549549    unsigned int x_size;                       // number of clusters in a row
    550550    unsigned int y_size;                       // number of clusters in a column
     
    552552    giet_procs_number( &x_size , &y_size , &nprocs );
    553553
     554    // shared TTY allocation
     555    giet_tty_alloc( 1 );     
     556    lock_init( &tty_lock);
     557
     558    // check plat-form parameters
    554559    giet_pthread_assert( ((nprocs >= 3) && (nprocs <= 8)),
    555560                         "[CLASSIF ERROR] number of procs per cluster must in [3...8]");
     
    570575    }
    571576
    572     // shared TTY allocation
    573     giet_tty_alloc( 1 );     
    574     lock_init( &tty_lock);
    575 
    576577    printf("\n[CLASSIF] start at cycle %d on %d cores\n",
    577578           giet_proctime(), (x_size * y_size * nprocs) );
    578579
    579580    // thread index
    580     // required bt pthread_create()
     581    // required by pthread_create()
    581582    // unused in this appli because no pthread_join()
    582583    pthread_t   trdid;
Note: See TracChangeset for help on using the changeset viewer.