Nate Finch
516c158212
don't embed the mutex
...
Embedding a mutex is a really bad idea. It exposes the Lock and Unlock methods on the enclosing type, which then allows code from outside your type to mess with your mutex.
There was no reason to embed the mutex in this example. The comment say it is idiomatic to do so, but that is untrue. Using a mutex called "mu" is idiomatic.
2021-11-19 14:51:47 -05:00
..
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2021-09-20 06:38:52 -07:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2020-01-13 13:55:24 -08:00
2019-10-22 14:27:02 +03:00
2021-08-28 06:38:35 -07:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2021-02-19 13:17:41 -08:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2020-04-10 18:06:38 -07:00
2019-10-22 14:27:02 +03:00
2021-08-30 07:17:25 -07:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2021-11-19 14:51:47 -05:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2021-09-02 05:42:07 -07:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2021-02-20 10:22:23 -08:00
2021-08-28 06:38:35 -07:00
2021-09-01 08:51:00 -07:00
2021-09-02 10:40:04 -07:00
2021-09-10 05:56:40 -07:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2021-08-30 07:24:48 -07:00
2019-10-22 14:27:02 +03:00
2021-09-08 05:46:23 -07:00
2019-10-22 14:27:02 +03:00
2020-04-10 17:50:55 -07:00
2019-10-22 14:27:02 +03:00
2021-08-28 06:38:35 -07:00
2020-10-19 08:04:08 -07:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2020-03-09 14:41:18 +02:00
2020-08-23 07:50:27 -07:00
2020-01-04 10:17:11 -08:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2019-10-22 14:27:02 +03:00
2021-09-10 07:19:33 -07:00
2020-01-04 10:36:28 -08:00
2021-08-28 06:38:35 -07:00
2020-03-09 13:24:03 +02:00