-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Be able to allocate a formatter for stdout/stderr and use it instead of
using OCaml's formatter - fix some data-race when some parallel tasks use the same formatter. This commit tries to solve an issue about OCaml 5 and parallelism. Alcotest uses OCaml's formatter which can be used by some libraries such as Logs. In this situation and if Logs is used into a parallel task, a data-race exists about the internal queue used by formatters. This commit allows the user to allocate its own formatter for stdout/stderr and give them to Alcotest.
- Loading branch information
Showing
14 changed files
with
226 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,5 @@ module Platform = Platform | |
module Private = struct | ||
module Pp = Pp | ||
end | ||
|
||
module Global = Global |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,3 +54,5 @@ module Platform = Platform | |
module Private : sig | ||
module Pp = Pp | ||
end | ||
|
||
module Global = Global |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.