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.
+ 94
− 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,29 +69,22 @@ static int volatile todo_send = 0;
@@ -96,7 +94,8 @@ static void *inject_thread(void *arg) {
@@ -113,6 +112,10 @@ static void *inject_thread(void *arg) {
@@ -146,7 +149,7 @@ static void *inject_thread(void *arg) {
@@ -162,16 +165,39 @@ static void *inject_thread(void *arg) {
@@ -200,7 +226,7 @@ static void queue_runner(struct mpiuse_log_entry **logs, int volatile *nr_logs,
@@ -250,7 +276,7 @@ static void queue_runner(struct mpiuse_log_entry **logs, int volatile *nr_logs,
@@ -321,9 +347,8 @@ static void pick_logs(void) {
@@ -340,8 +365,8 @@ static void pick_logs(void) {
@@ -350,22 +375,42 @@ static void pick_logs(void) {
@@ -391,7 +436,7 @@ int main(int argc, char *argv[]) {
@@ -399,6 +444,9 @@ int main(int argc, char *argv[]) {
@@ -437,12 +485,16 @@ int main(int argc, char *argv[]) {
@@ -452,7 +504,8 @@ int main(int argc, char *argv[]) {