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.
+ 92
− 37
@@ -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;
@@ -113,6 +114,10 @@ static void *inject_thread(void *arg) {
@@ -146,12 +151,12 @@ static void *inject_thread(void *arg) {
@@ -160,16 +165,39 @@ static void *inject_thread(void *arg) {
@@ -198,7 +226,7 @@ static void queue_runner(struct mpiuse_log_entry **logs, int volatile *nr_logs,
@@ -248,7 +276,7 @@ static void queue_runner(struct mpiuse_log_entry **logs, int volatile *nr_logs,
@@ -319,9 +347,8 @@ static void pick_logs(void) {
@@ -338,8 +365,8 @@ static void pick_logs(void) {
@@ -348,16 +375,36 @@ static void pick_logs(void) {
@@ -383,7 +430,7 @@ int main(int argc, char *argv[]) {
@@ -391,6 +438,9 @@ int main(int argc, char *argv[]) {
@@ -428,12 +478,16 @@ int main(int argc, char *argv[]) {
@@ -443,7 +497,8 @@ int main(int argc, char *argv[]) {