@@ -20,62 +20,6 @@ Date: Thu Aug 28 13:08:45 2025 +0100
20
20
21
21
- Fewer deadlocks
22
22
23
- diff --git a/Sources/NIOPosix/SelectableEventLoop.swift b/Sources/NIOPosix/SelectableEventLoop.swift
24
- index 6ca89bd3..e696d505 100644
25
- --- a/Sources/NIOPosix/SelectableEventLoop.swift
26
- +++ b/Sources/NIOPosix/SelectableEventLoop.swift
27
- @@ -1060,28 +1060,31 @@ extension SelectableEventLoop: CustomStringConvertible, CustomDebugStringConvert
28
-
29
- @usableFromInline
30
- var debugDescription: String {
31
- - self._tasksLock.withLock {
32
- - if self.inEventLoop {
33
- - return """
34
- - SelectableEventLoop { \
35
- - selector = \(self._selector), \
36
- - scheduledTasks = \(self._scheduledTasks.description), \
37
- - thread = \(self.thread), \
38
- - state = \(self.internalState) \
39
- - }
40
- - """
41
- - } else {
42
- - return self.externalStateLock.withLock {
43
- - """
44
- - SelectableEventLoop { \
45
- - selector = \(self._selector), \
46
- - scheduledTasks = \(self._scheduledTasks.description), \
47
- - thread = \(self.thread), \
48
- - state = \(self.externalState) \
49
- - }
50
- - """
51
- + let scheduledTasks = self._tasksLock.withLock {
52
- + self._scheduledTasks.description
53
- + }
54
- +
55
- + if self.inEventLoop {
56
- + return """
57
- + SelectableEventLoop { \
58
- + selector = \(self._selector), \
59
- + scheduledTasks = \(scheduledTasks), \
60
- + thread = \(self.thread), \
61
- + state = \(self.internalState) \
62
- }
63
- + """
64
- + } else {
65
- + let externalState = self.externalStateLock.withLock {
66
- + self.externalState
67
- }
68
- + return """
69
- + SelectableEventLoop { \
70
- + selector = \(self._selector), \
71
- + scheduledTasks = \(scheduledTasks), \
72
- + thread = \(self.thread), \
73
- + state = \(externalState) \
74
- + }
75
- + """
76
- }
77
- }
78
- }
79
23
diff --git a/Tests/NIOPosixTests/EventLoopTest.swift b/Tests/NIOPosixTests/EventLoopTest.swift
80
24
index 65bbc653..93a5a700 100644
81
25
--- a/Tests/NIOPosixTests/EventLoopTest.swift
0 commit comments