1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os,gl,sync: cleanup, prepare for .toplevel_comments vdoc mode

This commit is contained in:
Delyan Angelov
2020-06-06 18:25:58 +03:00
parent 32463e94f5
commit 3aecdeab63
4 changed files with 41 additions and 73 deletions

View File

@ -1,4 +1,7 @@
module sync
import runtime
// * Goal: this file provides a convenient way to run identical tasks over a list
// * of items in parallel, without worrying about waitgroups, mutexes and so on.
// *
@ -36,7 +39,6 @@ module sync
// * 2) idx - the index of the currently processed item
// * 3) task_id - the index of the worker thread in which the callback
// * function is running.
import runtime
pub const (
no_result = voidptr(0)