Skip to content

Commit 381c3fe

Browse files
committed
Revised discussion of thread safety
Added Jeremies revision of the discussion in stdlib_logger.md. [ticket: X]
1 parent 0853039 commit 381c3fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/specs/stdlib_logger.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ The logger variables have the option to:
3434
* indent subsequent lines of the messages; and
3535
* format the text to fit within a maximum column width.
3636

37-
While every effort has been made to make the code thread and
37+
While every effort has been made to make the code process and
3838
asynchronous I/O safe, it is always best to have each process write to
3939
its own dedicated logger file.
40+
For thread parallelism (e.g., with OpenMP), it is advised to put the
41+
logger call in a guarding region (e.g., in an OpenMP critical region).
4042

4143
Note: Loggers of type `logger_type` normally report their messages to I/O
4244
units in the internal list termed `log_units`. However if `log_units`

0 commit comments

Comments
 (0)