Increase no. of injection threads to 2
Compare changes
Conflict: This file was modified in both the source and target branches.
Ask someone with write access to resolve it.
+ 99
− 41
@@ -38,6 +38,9 @@ static int verbose = 0;
@@ -47,14 +50,16 @@ static const int task_subtype_count = 30; // Just some upper limit on subtype.
@@ -64,27 +69,23 @@ static int volatile todo_send = 0;
@@ -94,7 +95,8 @@ static void *inject_thread(void *arg) {
@@ -113,6 +115,10 @@ static void *inject_thread(void *arg) {
@@ -146,13 +152,15 @@ static void *inject_thread(void *arg) {
@@ -160,16 +168,39 @@ static void *inject_thread(void *arg) {
@@ -198,7 +229,7 @@ static void queue_runner(struct mpiuse_log_entry **logs, int volatile *nr_logs,
@@ -248,7 +279,7 @@ static void queue_runner(struct mpiuse_log_entry **logs, int volatile *nr_logs,
@@ -319,9 +350,8 @@ static void pick_logs(void) {
@@ -338,8 +368,8 @@ static void pick_logs(void) {
@@ -348,16 +378,36 @@ static void pick_logs(void) {
@@ -383,7 +433,7 @@ int main(int argc, char *argv[]) {
@@ -391,6 +441,9 @@ int main(int argc, char *argv[]) {
@@ -428,12 +481,16 @@ int main(int argc, char *argv[]) {
@@ -443,7 +500,8 @@ int main(int argc, char *argv[]) {