Ignore:
Timestamp:
03/14/17 19:12:25 (7 years ago)
Author:
yushan
Message:

Using threads : modif for xios_initialize

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/parse_expr/lex_parser.cpp

    r1037 r1072  
    264264static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ 
    265265static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ 
     266#pragma omp threadprivate(yy_buffer_stack_top, yy_buffer_stack_max, yy_buffer_stack) 
    266267 
    267268/* We provide macros for accessing buffer states in case in the 
     
    283284static char yy_hold_char; 
    284285static yy_size_t yy_n_chars;            /* number of characters read into yy_ch_buf */ 
     286#pragma omp threadprivate(yy_hold_char, yy_n_chars) 
     287 
    285288yy_size_t yyleng; 
    286289 
     
    289292static int yy_init = 0;         /* whether we need to initialize */ 
    290293static int yy_start = 0;        /* start state number */ 
     294#pragma omp threadprivate(yy_c_buf_p, yy_init, yy_start) 
    291295 
    292296/* Flag which is used to allow yywrap()'s to do buffer switches 
     
    294298 */ 
    295299static int yy_did_buffer_switch_on_eof; 
     300#pragma omp threadprivate(yy_did_buffer_switch_on_eof) 
    296301 
    297302void yyrestart (FILE *input_file  ); 
     
    982987 
    983988    } ; 
     989#pragma omp threadprivate(yy_nxt) 
    984990 
    985991static yy_state_type yy_get_previous_state (void ); 
     
    10251031        0,    0,    0,    0,    0 
    10261032    } ; 
     1033 
     1034#pragma omp threadprivate(yy_accept, yy_last_accepting_state, yy_last_accepting_cpos, yy_NUL_trans) 
    10271035 
    10281036extern int yy_flex_debug; 
Note: See TracChangeset for help on using the changeset viewer.