in Technology by (1.8m points)

What does @synchronized() do?

1 Answer

0 votes
by (1.8m points)

The @synchronized directive is a convenient way to create mutex locks on the fly in Objective-C code. The @synchronized directive does what any other mutex lock would do — it prevents different threads from acquiring the same lock at the same time.

Related questions

0 votes
asked Dec 16, 2020 in Technology by JackTerrance (1.8m points)