[Mono-dev] [PATCH] System.Threading.Parallel

Andreas Färber andreas.faerber at web.de
Sun Dec 23 11:16:12 EST 2007


Hey,

Am 23.12.2007 um 17:06 schrieb Jonathan Chambers:

> #if false
>
> should work.

Thanks, should have read the C# spec *before* posting ... just found  
that nice feature!

Updated patch attached.

Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: System.Threading.Parallel-2007-12-23b.diff
Type: application/octet-stream
Size: 29942 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20071223/a2e0b130/attachment.obj 
-------------- next part --------------



> On Dec 23, 2007 11:01 AM, Andreas F?rber <andreas.faerber at web.de>  
> wrote:
>
> Am 23.12.2007 um 11:44 schrieb Andreas F?rber:
>
> > Hello,
> >
> > Am 22.12.2007 um 23:49 schrieb Marek Safar:
> >
> >>> ECMA_PARALLEL_SUPPORT is not being defined anywhere, should I
> >>> better use #if 0 to make it more obvious?
> >> Yes, #if 0 is more obvious.
> >
>
> Actually this breaks compilation:
>
> System.Threading.Parallel/ParallelFor.cs(51,1): error CS1517: Invalid
> preprocessor directive
> System.Threading.Parallel/ParallelFor.cs(51,1): error CS1025: Single-
> line comment or end-of-line expected
> System.Threading.Parallel/ParallelForEach.cs(53,1): error CS1517:
> Invalid preprocessor directive
> System.Threading.Parallel/ParallelForEach.cs(53,1): error CS1025:
> Single-line comment or end-of-line expected
> System.Threading.Parallel/ParallelWhile.cs(53,1): error CS1517:
> Invalid preprocessor directive
> System.Threading.Parallel/ParallelWhile.cs(53,1): error CS1025:  
> Single-
> line comment or end-of-line expected
> Compilation failed: 6 error(s), 0 warnings
>
> Any alternatives?



More information about the Mono-devel-list mailing list