mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
stdlib: implement _stdlib_create_pthread_block in terms of Windows threaing
Port the block based thread constructor to Windows threading model, and rename it to `_stdlib_create_thread_block`.
This commit is contained in:
@@ -93,9 +93,9 @@ StringTestSuite.test("SliceConcurrentAppend") {
|
||||
var ret = _stdlib_thread_barrier_init(barrierVar!, 2)
|
||||
expectEqual(0, ret)
|
||||
|
||||
let (createRet1, tid1) = _stdlib_pthread_create_block(
|
||||
let (createRet1, tid1) = _stdlib_thread_create_block(
|
||||
sliceConcurrentAppendThread, .Primary)
|
||||
let (createRet2, tid2) = _stdlib_pthread_create_block(
|
||||
let (createRet2, tid2) = _stdlib_thread_create_block(
|
||||
sliceConcurrentAppendThread, .Secondary)
|
||||
|
||||
expectEqual(0, createRet1)
|
||||
|
||||
Reference in New Issue
Block a user