Skip to content

Commit 4e05b76

Browse files
kkokosakouvel
andauthored
Simple fix for thread priority sample snippet (#4382)
* Simple fix for thread priority sample snippet Co-authored-by: Koundinya Veluri <[email protected]>
1 parent e61b32d commit 4e05b76

File tree

1 file changed

+1
-1
lines changed
  • samples/snippets/csharp/VS_Snippets_CLR_System/System.Threading.ThreadPriority/cs

1 file changed

+1
-1
lines changed

samples/snippets/csharp/VS_Snippets_CLR_System/System.Threading.ThreadPriority/cs/Example1.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ static void Main()
2929

3030
class PriorityTest
3131
{
32-
static bool loopSwitch;
32+
static volatile bool loopSwitch;
3333
[ThreadStatic] static long threadCount = 0;
3434

3535
public PriorityTest()

0 commit comments

Comments
 (0)