ObjFW  Diff

Differences From Artifact [9101d3d77b]:

To Artifact [1787b597ed]:

  • File src/OFLocking.h — part of check-in [0a73af49f0] at 2017-04-30 13:35:16 on branch trunk — Use nonatomic for properties and clean up

    This changes retaining behavior, meaning properties are not returned
    retained and autoreleased anymore, so a property returned from a getter
    now needs to be manually retained and autoreleased before calling the
    setter. However, this is rarely the case and not using atomic improves
    performance. (user: js, size: 1342) [annotate] [blame] [check-ins using]


23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 *
 * @brief A protocol for locks.
 */
@protocol OFLocking <OFObject>
/*!
 * The name of the lock.
 */
@property OF_NULLABLE_PROPERTY (copy) OFString *name;

/*!
 * @brief Locks the lock.
 */
- (void)lock;

/*!







|







23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 *
 * @brief A protocol for locks.
 */
@protocol OFLocking <OFObject>
/*!
 * The name of the lock.
 */
@property OF_NULLABLE_PROPERTY (nonatomic, copy) OFString *name;

/*!
 * @brief Locks the lock.
 */
- (void)lock;

/*!