ObjFW  Diff

Differences From 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]

To Artifact [484f458e2d]:


47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
- (void)unlock;

/*!
 * @brief Sets a name for the lock.
 *
 * @param name The name for the lock
 */
- (void)setName: (nullable OFString*)name;

/*!
 * @brief Returns the name for the lock.
 *
 * @return The name for the lock
 */
- (nullable OFString*)name;
@end

OF_ASSUME_NONNULL_END







|






|



47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
- (void)unlock;

/*!
 * @brief Sets a name for the lock.
 *
 * @param name The name for the lock
 */
- (void)setName: (nullable OFString *)name;

/*!
 * @brief Returns the name for the lock.
 *
 * @return The name for the lock
 */
- (nullable OFString *)name;
@end

OF_ASSUME_NONNULL_END