Skip to content

Commit

Permalink
format with dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
computablee committed Nov 25, 2023
1 parent b0cb81f commit 4203bdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DotMP/Parallel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ public static void ParallelRegion(Action action, uint? num_threads = null)

task_nesting.Dispose();
task_nesting = new ThreadLocal<uint>(() => 0);

TaskingContainer tc = new TaskingContainer();
tc.ResetDAGNotThreadSafe();

Expand Down Expand Up @@ -905,7 +905,7 @@ public static TaskUUID Task(Action action, params TaskUUID[] depends)
TaskingContainer tc = new TaskingContainer();
return tc.EnqueueTask(action, depends);
}

/// <summary>
/// Wait for selected tasks in the queue to complete, or for the full queue to empty if no tasks are specified.
/// Acts as an implicit Barrier() if it is not called from within a task.
Expand All @@ -924,7 +924,7 @@ public static void Taskwait(params TaskUUID[] tasks)
{
if (task_nesting.Value > 0)
throw new ImproperTaskwaitUsageException("Using the default taskwait from within a task will result in a deadlock. Try specifying the task to wait on as an argument.");

check = tr => tr > 0;
}
else
Expand Down

0 comments on commit 4203bdd

Please sign in to comment.