Skip to content
This repository was archived by the owner on Apr 23, 2023. It is now read-only.

Commit 6838ab9

Browse files
naming conventions
1 parent 9ccd7e5 commit 6838ab9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Collections/QueueSample/DocumentManager.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ namespace QueueSample
44
{
55
public class DocumentManager
66
{
7-
private readonly object syncQueue = new object();
7+
private readonly object _syncQueue = new object();
88

99
private readonly Queue<Document> _documentQueue = new Queue<Document>();
1010

1111
public void AddDocument(Document doc)
1212
{
13-
lock (syncQueue)
13+
lock (_syncQueue)
1414
{
1515
_documentQueue.Enqueue(doc);
1616
}
@@ -19,7 +19,7 @@ public void AddDocument(Document doc)
1919
public Document GetDocument()
2020
{
2121
Document doc = null;
22-
lock (syncQueue)
22+
lock (_syncQueue)
2323
{
2424
doc = _documentQueue.Dequeue();
2525
}

0 commit comments

Comments
 (0)