Hacker News new | ask | show | jobs
by wattson12 4446 days ago
Yes in class methods self is the Class object, so the Class is used as the locking token:

> The object passed to the @synchronized directive is a unique identifier used to distinguish the protected block