Homec4science

Return $this from lock() and unlock()

Authored by epriestley <git@epriestley.com> on Jul 7 2012, 00:39.

Description

Return $this from lock() and unlock()

Summary: This simplifies establishing multiple locks since you don't need to use temp vars.

Test Plan: Trivial / unit tests.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1162

Differential Revision: https://secure.phabricator.com/D2936

Details

Committed
epriestley <git@epriestley.com>Jul 7 2012, 00:39
Pushed
aubortMar 17 2017, 12:03
Parents
rPHU5aa06b7a50fd: Allow PhutilLocks to block
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPHU40af824a334f: Return $this from lock() and unlock() (authored by epriestley <git@epriestley.com>).Jul 7 2012, 00:39