Skip to content
Tcl Source Code History Of Ticket 7f3321da83ae2513
Login

History Of Ticket 7f3321da83ae2513

Artifacts Associated With Ticket 7f3321da83ae2513

  1. Ticket change [e45d2d7101] (rid 173599) by anonymous on 2019-07-23 15:49:27:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. 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(&notifierInitLock)
      < #define UNLOCK_NOTIFIER_INIT    SpinLockUnlock(&notifierInitLock)
      < #define LOCK_NOTIFIER        SpinLockLock(&notifierLock)
      < #define UNLOCK_NOTIFIER        SpinLockUnlock(&notifierLock)
      < #define LOCK_NOTIFIER_TSD    SpinLockLock(&tsdPtr->tsdLock)
      < #define UNLOCK_NOTIFIER_TSD    SpinLockUnlock(&tsdPtr->tsdLock)
      ---
      > #define LOCK_NOTIFIER_INIT    SpinLockLock(&notifierInitLock)
      > #define UNLOCK_NOTIFIER_INIT  SpinLockUnlock(&notifierInitLock)
      > #define LOCK_NOTIFIER     SpinLockLock(&notifierLock)
      > #define UNLOCK_NOTIFIER       SpinLockUnlock(&notifierLock)
      > #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
      
    5. is_private initialized to: "0"
    6. login: "anonymous"
    7. priority initialized to: "5 Medium"
    8. private_contact initialized to: "10e302b1a1ae78d60a0878d87bdb4b5f874b815e"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "anonymous"
    13. subsystem initialized to: "01. Notifier"
    14. title initialized to:
      os_unfair_lock instead of OSSpinLock on macOS >= 10.12
      
    15. type initialized to: "Patch"
  2. Ticket change [13f754e909] (rid 184079) by chrstphrchvz on 2020-06-22 18:13:47:

    1. icomment: "Possibly in progress, see [7c6642e5f3dd]"
    2. login: "chrstphrchvz"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [4e6e4795c2] (rid 184988) by chrstphrchvz on 2020-07-18 17:13:08:

    1. assignee changed to: "marc_culler"
    2. icomment:
      Resolved by the macOS_hangs branch (see [a58737f57b]) merged into core-8-6-branch. How should this be marked as resolved?
      
    3. login: "chrstphrchvz"
    4. mimetype: "text/x-fossil-wiki"
  4. Ticket change [0fa5e94156] (rid 184989) by anonymous on 2020-07-18 17:24:13:

    1. icomment:
      Hi Christopher,
      yes, it's resolved and works ok.
      
      thanks,
      ++
      
    2. login: "anonymous"
    3. mimetype: "text/plain"
  5. Ticket change [0fe29dd69f] (rid 184990) by marc_culler on 2020-07-18 17:48:32:

    1. closedate changed to: "2459049.24204199"
    2. closer changed to: "marc_culler"
    3. 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!
      
    4. login: "marc_culler"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. type changed to: "Bug"
    9. username: "Marc Culler"