Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
krux02 authored Jul 30, 2019
1 parent bb949a7 commit 803406d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/system/threadlocalstorage.nim
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,12 @@ else:
tv_sec: Time
tv_nsec: clong

proc pthread_attr_init(a1: var PthreadAttr) {.
proc pthread_attr_init(a1: var Pthread_attr) {.
importc, header: pthreadh.}
proc pthread_attr_setstacksize(a1: var PthreadAttr, a2: int) {.
proc pthread_attr_setstacksize(a1: var Pthread_attr, a2: int) {.
importc, header: pthreadh.}

proc pthread_create(a1: var SysThread, a2: var PthreadAttr,
proc pthread_create(a1: var SysThread, a2: var Pthread_attr,
a3: proc (x: pointer): pointer {.noconv.},
a4: pointer): cint {.importc: "pthread_create",
header: pthreadh.}
Expand Down
2 changes: 1 addition & 1 deletion lib/system/threads.nim
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ else:
when TArg isnot void: t.data = param
t.dataFn = tp
when hasSharedHeap: t.core.stackSize = ThreadStackSize
var a {.noinit.}: PthreadAttr
var a {.noinit.}: Pthread_attr
pthread_attr_init(a)
pthread_attr_setstacksize(a, ThreadStackSize)
if pthread_create(t.sys, a, threadProcWrapper[TArg], addr(t)) != 0:
Expand Down
2 changes: 1 addition & 1 deletion tests/concepts/texplain.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
discard """
cmd: "nim c --verbosity:0 --colors:off $file"
nimout: '''
Hint: texplain [Processing]
texplain.nim(158, 10) Hint: Non-matching candidates for e(y)
proc e(i: int): int
first type mismatch at position: 1
Expand Down Expand Up @@ -117,6 +116,7 @@ expression: f(y)'''




# line 120 HERE

type
Expand Down

0 comments on commit 803406d

Please sign in to comment.