Changeset 60 for sources/src/sc_port.cc
- Timestamp:
- Feb 14, 2017, 11:30:19 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/sc_port.cc
r59 r60 53 53 extern char unstable; 54 54 char unstable = 0; // not in sc_core namespace because dynamic link support C linkage only 55 int32 pending_write_vector_nb = 0; 55 int32 * pending_write_vector_nb = 0; 56 unsigned long long int total_assig = 0; 57 #pragma omp threadprivate (pending_write_vector_nb, total_assig) 56 58 } 57 59 … … 65 67 unsigned int pending_write_vector_capacity = 512; 66 68 pending_write_vector_t pending_write_vector = NULL; 69 #pragma omp threadprivate (pending_write_vector) 67 70 extern equi_list_t equi_list; 68 71 … … 218 221 // signal table sorting doesn't give any better performance 219 222 #if defined(DUMP_STAGE) 220 cerr << "(" << pending_write_vector_nb223 cerr << "(" << *pending_write_vector_nb 221 224 << " internal pending writings) "; 222 225 #endif 223 226 unsigned int i; 224 for (i = 0; i < pending_write_vector_nb; ++i) {227 for (i = 0; i < *pending_write_vector_nb; ++i) { 225 228 #define iter (sc_core::pending_write_vector[i]) 226 229 #ifdef CONFIG_DEBUG … … 240 243 } 241 244 #ifdef DUMP_SIGNAL_STATS 242 total_assig += pending_write_vector_nb; 243 #endif 244 pending_write_vector_nb = 0; 245 total_assig += *pending_write_vector_nb; 246 #endif 247 total_assig += *pending_write_vector_nb; 248 *pending_write_vector_nb = 0; 245 249 246 250 #if defined(DUMP_STAGE)
Note: See TracChangeset
for help on using the changeset viewer.