Artifacts Associated With Ticket 7f3321da83ae2513
Ticket change [e45d2d7101] (rid 173599) by anonymous on 2019-07-23 15:49:27:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OSSpinLock is deprecated on macOS 10.12, so this is an attempt to silent compiler sorry but I don't know exactly how to use diff diff /Users/nico/Desktop/tclMacOSXNotify.c /Users/nico/daylight/lib/framework/tcl-50a5729f85/macosx/tclMacOSXNotify.c 39,42d38 < #if MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 < #include <os/lock.h> < #define _USE_OS_UNFAIR_LOCK 1 < #endif 88,92d83 < #ifdef _USE_OS_UNFAIR_LOCK < #define SpinLockLock(p) os_unfair_lock_lock(p) < #define SpinLockUnlock(p) os_unfair_lock_unlock(p) < #define SpinLockTry(p) os_unfair_lock_trylock(p) < #else 96d86 < #endif /* _USE_OS_UNFAIR_LOCK */ 120,123d109 < #ifdef _USE_OS_UNFAIR_LOCK < static os_unfair_lock notifierInitLock = (OS_UNFAIR_LOCK_INIT); < static os_unfair_lock notifierLock = (OS_UNFAIR_LOCK_INIT); < #else 126d111 < #endif 132,137c117,122 < #define LOCK_NOTIFIER_INIT SpinLockLock(¬ifierInitLock) < #define UNLOCK_NOTIFIER_INIT SpinLockUnlock(¬ifierInitLock) < #define LOCK_NOTIFIER SpinLockLock(¬ifierLock) < #define UNLOCK_NOTIFIER SpinLockUnlock(¬ifierLock) < #define LOCK_NOTIFIER_TSD SpinLockLock(&tsdPtr->tsdLock) < #define UNLOCK_NOTIFIER_TSD SpinLockUnlock(&tsdPtr->tsdLock) --- > #define LOCK_NOTIFIER_INIT SpinLockLock(¬ifierInitLock) > #define UNLOCK_NOTIFIER_INIT SpinLockUnlock(¬ifierInitLock) > #define LOCK_NOTIFIER SpinLockLock(¬ifierLock) > #define UNLOCK_NOTIFIER SpinLockUnlock(¬ifierLock) > #define LOCK_NOTIFIER_TSD SpinLockLock(&tsdPtr->tsdLock) > #define UNLOCK_NOTIFIER_TSD SpinLockUnlock(&tsdPtr->tsdLock) 287,296c272,274 < #ifdef _USE_OS_UNFAIR_LOCK < os_unfair_lock tsdLock; /* Must hold this lock before acessing the < * following fields from more than one < * thread. */ < #else < OSSpinLock tsdLock; /* Must hold this lock before acessing the < * following fields from more than one < * thread. */ < #endif < --- > OSSpinLock tsdLock; /* Must hold this lock before acessing the > * following fields from more than one > * thread. */ 553,555d530 < #ifdef _USE_OS_UNFAIR_LOCK < tsdPtr->tsdLock = OS_UNFAIR_LOCK_INIT; < #else 557d531 < #endif
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "10e302b1a1ae78d60a0878d87bdb4b5f874b815e"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "01. Notifier"
- title initialized to:
os_unfair_lock instead of OSSpinLock on macOS >= 10.12
- type initialized to: "Patch"
Ticket change [13f754e909] (rid 184079) by chrstphrchvz on 2020-06-22 18:13:47:
- icomment: "Possibly in progress, see [7c6642e5f3dd]"
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
Ticket change [4e6e4795c2] (rid 184988) by chrstphrchvz on 2020-07-18 17:13:08:
- assignee changed to: "marc_culler"
- icomment:
Resolved by the macOS_hangs branch (see [a58737f57b]) merged into core-8-6-branch. How should this be marked as resolved?
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"
Ticket change [0fa5e94156] (rid 184989) by anonymous on 2020-07-18 17:24:13:
- icomment:
Hi Christopher, yes, it's resolved and works ok. thanks, ++
- login: "anonymous"
- mimetype: "text/plain"
- icomment:
Ticket change [0fe29dd69f] (rid 184990) by marc_culler on 2020-07-18 17:48:32:
- closedate changed to: "2459049.24204199"
- closer changed to: "marc_culler"
- icomment:
I am closing this now and marking it as FIXED. There was more work required than was provided in the patch. And it wasn't really a bug, just a deprecation. But I am reclassifying it as a bug so I don't have to figure out what it means to fix an RFE. Thanks for remembering about this ticket!
- login: "marc_culler"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- type changed to: "Bug"
- username: "Marc Culler"