Skip to content

Commit

Permalink
fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mratsim committed Dec 4, 2023
1 parent b128fe8 commit eee242e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion constantine/threadpool/instrumentation.nim
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import system/ansi_c

proc c_fflush*(f: File): cint {.importc: "fflush", header: "<stdio.h>", sideeffect, tags:[WriteIOEffect].}
proc c_fflush*(f: File) {.importc: "fflush", header: "<stdio.h>", sideeffect, tags:[WriteIOEffect].}

# Loggers
# --------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion examples_threadpool/e02_parallel_pi.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Demo of API using a very inefficient π approcimation algorithm.

import
std/[strutils, math, cpuinfo],
std/[strutils, cpuinfo],
../constantine/threadpool

# From https://github.com/nim-lang/Nim/blob/v1.6.2/tests/parallel/tpi.nim
Expand Down
2 changes: 1 addition & 1 deletion examples_threadpool/e03_parallel_for.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ../constantine/threadpool, ../instrumentation
import ../constantine/[threadpool, threadpool/instrumentation]

block:
proc main() =
Expand Down

0 comments on commit eee242e

Please sign in to comment.