swift-nio/Sources/NIOConcurrencyHelpers
Johannes Weiss cee3db7072 Lock: guarantee crash instead of undefined behaviour (#1131)
Motivation:

NIO's Lock currently just deadlocks if a thread which already holds a
lock tries to reacquire it. This however isn't even really defined
behaviour.

Modifications:

Switch us to a guaranteed crash from a unguarnateed hang.

Result:

Easier to debug deadlocks with NIO's lock.
2019-09-09 09:50:03 +01:00
..
atomics.swift improve documentation (#919) 2019-03-25 12:09:16 +02:00
lock.swift Lock: guarantee crash instead of undefined behaviour (#1131) 2019-09-09 09:50:03 +01:00