Re: [Mingw-w64-public] issues with application to run commands in parallel on Windows

2019-05-06 Thread Vincent Torri
On Tue, May 7, 2019 at 12:17 AM David Mathog wrote: > > On 04-May-2019 20:31, Liu Hao wrote: > > 在 2019/5/4 上午6:16, David Mathog 写道: > > Thanks for the feedback, but I'm still nowhere near getting this to > work. > > >> > >> Issues: > >> > >> > >> 1. Compiler warnings: > >> > >> c_spawn_n.c: In f

Re: [Mingw-w64-public] issues with application to run commands in parallel on Windows

2019-05-06 Thread Liu Hao
在 2019/5/7 上午6:17, David Mathog 写道: > Changed the called routine to (see below): > > DWORD  RunCommand(  void *lpParam  ){ > Insert an `__stdcall` before `RunCommand`. The calling convention is part of the function type. >> >>> 2.  when run procs is shown as -1, not sure how that happens. >> >>

Re: [Mingw-w64-public] issues with application to run commands in parallel on Windows

2019-05-06 Thread David Mathog
On 04-May-2019 20:31, Liu Hao wrote: 在 2019/5/4 上午6:16, David Mathog 写道: Thanks for the feedback, but I'm still nowhere near getting this to work. Issues: 1.  Compiler warnings: c_spawn_n.c: In function 'main': c_spawn_n.c:47:13: warning: passing argument 3 of 'CreateThread' from incomp

Re: [Mingw-w64-public] issues with application to run commands in parallel on Windows

2019-05-04 Thread Liu Hao
在 2019/5/4 上午6:16, David Mathog 写道: > > Issues: > > > 1.  Compiler warnings: > > c_spawn_n.c: In function 'main': > c_spawn_n.c:47:13: warning: passing argument 3 of 'CreateThread' from > incompatible pointer type [-Wincompatible-pointer-types] > RunCommand, // thread f

[Mingw-w64-public] issues with application to run commands in parallel on Windows

2019-05-03 Thread David Mathog
Hi all, I maintain a little package with some text and binary utilities here: https://sourceforge.net/projects/drmtools/ In the last release the "execinput" program was modified so that instead of running just one command it could run N at a time. Like so (silly example to calculate md5su