Commit e9025ca
Replace deprecated OSSpinLock with pthread_mutex_t (#30)
Cherry-pick fix from upstream mailcore2 PR #1953.
OSSpinLock is deprecated on Apple platforms since macOS 10.12/iOS 10.0
due to priority inversion issues. This causes deprecation warnings
during compilation.
This fix replaces OSSpinLock with pthread_mutex_t on all platforms,
which is already used on non-Apple platforms. pthread_mutex_t is a
safe, portable alternative that:
1. Avoids priority inversion issues
2. Eliminates platform-specific code paths
3. Is already being used elsewhere in the codebase
Upstream: MailCore/mailcore2#1953
Related: MailCore/mailcore2#1785
Co-authored-by: Claude <noreply@anthropic.com>1 parent 0dcc926 commit e9025ca
File tree
3 files changed
+0
-23
lines changed- Vendor/mailcore2/src/core/basetypes
3 files changed
+0
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 12 | | |
24 | 13 | | |
25 | 14 | | |
| |||
28 | 17 | | |
29 | 18 | | |
30 | 19 | | |
31 | | - | |
32 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | 36 | | |
38 | | - | |
39 | 37 | | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 41 | | |
47 | | - | |
48 | 42 | | |
49 | 43 | | |
50 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | 60 | | |
64 | | - | |
65 | 61 | | |
66 | 62 | | |
67 | 63 | | |
| |||
0 commit comments