mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-01-01 03:14:16 +00:00
73618879f4
The global registry is initialized via generated code. The Go language guarantees that these are serialized (non concurrently). The main concern is when a concurrent read operation occurs while registration is still ongoing. In such a case, we do need a lock to serialize the read with regard to the writes (i.e. registrations). Change-Id: Ied35d6f8d2620f448cb281c3ec46d8de893b5671 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/199217 Reviewed-by: Damien Neil <dneil@google.com> |
||
---|---|---|
.. | ||
protodesc | ||
protoreflect | ||
protoregistry |