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:
Saleem Abdulrasool
2018-11-25 11:37:13 -08:00
parent e1d7ee79e4
commit 6bf7b9e711
4 changed files with 45 additions and 25 deletions

View File

@@ -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)