[Mono-bugs] [Bug 629545] New: SpinWait is not used correctly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 9 09:32:07 EDT 2010



           Summary: SpinWait is not used correctly
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: nn1436401 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

User-Agent:       Mozilla/5.0 (Windows; Windows NT 6.1; rv:2.0b3pre)
Gecko/20100802 Firefox/4.0b3pre

In SpinLock class

Comes the following line:
SpinWait wait; 

Microsoft C# compiler doesn't like this.
It must be changed to
SpinWait wait = new SpinWait();

This satisfies both Mono C# and Microsoft C# compilers.

Reproducible: Always

Steps to Reproduce:
1. Compile SpinLock class using Microsoft C# compiler.
2. See error.
Actual Results:  
Compilation error

Expected Results:  
No errors

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list