Ayke van Laethem
26c36d0a2e
runtime: lock output in print/println
...
This ensures that calls to print/println happening in different threads
are not interleaved. It's a task.PMutex, so this should only change
things when threading is used.
This matches the Go compiler, which does the same thing:
https://godbolt.org/z/na5KzE7en
The locks are not recursive, which means that we need to be careful to
not call `print` or `println` inside a runtime.print* implementation,
inside putchar (recursively), and inside signal handlers. Making them
recursive might be useful to do in the future, but it's not really
necessary.
2024-12-01 11:12:00 +01:00
..
2024-11-20 07:53:59 +01:00
2022-09-15 19:07:04 +02:00
2024-10-18 17:43:17 +02:00
2022-08-01 10:53:48 +02:00
2024-01-19 21:23:58 +01:00
2024-10-18 10:44:20 +02:00
2024-01-19 21:23:58 +01:00
2019-09-20 10:35:49 +02:00
2019-09-20 10:35:49 +02:00
2022-06-24 11:10:24 +02:00
2022-06-24 11:10:24 +02:00
2021-11-24 14:17:47 +01:00
2021-11-24 14:17:47 +01:00
2023-04-11 18:54:05 -07:00
2020-07-31 01:48:57 +02:00
2023-03-24 09:22:38 -07:00
2023-03-24 09:22:38 -07:00
2024-02-11 10:43:28 +01:00
2021-11-26 08:05:35 +01:00
2021-08-05 19:01:14 +02:00
2022-08-07 10:32:23 +02:00
2021-04-09 18:33:48 +02:00
2021-01-19 14:02:32 +01:00
2021-01-19 14:02:32 +01:00
2023-02-18 10:50:26 +01:00
2018-11-18 19:18:39 +01:00
2022-08-22 10:31:30 +02:00
2022-08-01 10:53:48 +02:00
2023-08-04 11:59:11 +02:00
2023-08-04 11:59:11 +02:00
2024-09-05 10:53:33 +02:00
2024-09-05 10:53:33 +02:00
2018-10-25 20:37:35 +02:00
2018-10-25 20:37:35 +02:00
2024-05-13 16:49:18 +02:00
2021-07-14 07:55:05 +02:00
2023-11-08 19:41:25 +01:00
2023-11-08 19:41:25 +01:00
2021-03-28 14:00:37 +02:00
2021-03-28 14:00:37 +02:00
2021-04-09 18:33:48 +02:00
2021-04-09 18:33:48 +02:00
2023-02-25 06:42:30 -08:00
2023-02-25 06:42:30 -08:00
2023-12-09 07:47:27 +01:00
2023-12-09 07:47:27 +01:00
2024-12-01 11:12:00 +01:00
2024-12-01 11:12:00 +01:00
2021-08-05 19:01:14 +02:00
2021-08-05 19:01:14 +02:00
2024-11-30 11:55:22 +01:00
2024-11-30 11:55:22 +01:00
2024-07-31 21:08:23 +02:00
2024-07-31 21:08:23 +02:00
2024-10-23 12:25:27 +01:00
2024-10-23 12:25:27 +01:00
2023-03-18 17:53:47 +01:00
2024-07-31 13:20:12 -07:00
2020-10-23 21:37:35 +02:00
2020-10-23 21:37:35 +02:00
2023-01-17 08:38:54 +01:00
2020-05-13 08:08:57 +02:00
2020-07-29 12:13:37 +02:00
2019-08-11 15:45:35 +02:00
2019-10-13 23:07:47 +02:00
2019-10-13 23:07:47 +02:00
2023-08-04 11:59:11 +02:00
2022-03-15 05:59:00 +01:00
2024-02-19 22:17:19 +01:00
2022-11-03 15:26:20 +01:00
2023-04-26 18:40:35 +02:00
2024-11-08 11:55:38 +01:00
2024-11-08 11:55:38 +01:00
2024-11-08 11:55:38 +01:00
2024-10-22 18:05:04 +02:00
2024-10-18 10:07:21 +01:00
2024-10-04 15:33:47 -07:00
2024-10-19 16:00:45 +01:00
2024-10-19 16:00:45 +01:00
2024-10-19 16:00:45 +01:00
2020-05-12 01:17:27 +02:00
2019-11-17 15:14:51 +01:00