Changeset bfb9bf5
- Timestamp:
- Mar 14, 2022, 3:00:06 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- c7f2d9b
- Parents:
- 884f3f67
- Location:
- libcfa/src/concurrency
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/setup.cfa
r884f3f67 rbfb9bf5 39 39 40 40 #else 41 #pragma GCC diagnostic push 42 #pragma GCC diagnostic ignored "-Waddress-of-packed-member" 41 43 #include <errno.h> 42 44 #include <stdint.h> … … 59 61 #include "kernel_private.hfa" 60 62 #include "thread.hfa" 63 #pragma GCC diagnostic pop 61 64 62 65 void ?{}(io_context_params & this) { -
libcfa/src/concurrency/kernel.cfa
r884f3f67 rbfb9bf5 19 19 // #define __CFA_DEBUG_PRINT_RUNTIME_CORE__ 20 20 21 #pragma GCC diagnostic push 22 #pragma GCC diagnostic ignored "-Waddress-of-packed-member" 23 21 24 //C Includes 22 25 #include <errno.h> … … 25 28 #include <signal.h> 26 29 #include <unistd.h> 30 27 31 extern "C" { 28 32 #include <sys/eventfd.h> … … 40 44 #define __CFA_INVOKE_PRIVATE__ 41 45 #include "invoke.h" 46 #pragma GCC diagnostic pop 42 47 43 48 #if !defined(__CFA_NO_STATISTICS__) -
libcfa/src/concurrency/kernel/cluster.cfa
r884f3f67 rbfb9bf5 354 354 /* paranoid */ verifyf( ocount >= ncount, "Error in shrinking size calculation, %zu >= %zu", ocount, ncount ); 355 355 /* paranoid */ verifyf( ncount == target * __shard_factor.readyq || ncount == __readyq_single_shard, 356 /* paranoid */ "Error in shrinking size calculation, expected %u or %u, got %zu", target * __shard_factor.readyq, ncount );356 /* paranoid */ "Error in shrinking size calculation, expected %u or %u, got %zu", target * __shard_factor.readyq, __readyq_single_shard, ncount ); 357 357 358 358 readyQ.count = ncount; -
libcfa/src/concurrency/kernel_private.hfa
r884f3f67 rbfb9bf5 410 410 static struct { 411 411 const unsigned readyq; 412 } __shard_factor = { 2 };412 } __shard_factor __attribute__((unused)) = { 2 }; 413 413 414 414 // Local Variables: // -
libcfa/src/concurrency/ready_queue.cfa
r884f3f67 rbfb9bf5 186 186 // try to pop from a lane given by index w 187 187 static inline struct thread$ * try_pop(struct cluster * cltr, unsigned w __STATS(, __stats_readyQ_pop_t & stats)) with (cltr->sched) { 188 const size_t lanes_count = readyQ.count; 189 /* paranoid */ verify( w < lanes_count ); 188 /* paranoid */ verify( w < readyQ.count ); 190 189 __STATS( stats.attempt++; ) 191 190
Note: See TracChangeset
for help on using the changeset viewer.