0 votes
in Technology by (321k points)

What does @synchronized() do?

1 Answer

0 votes
by (321k 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.

...