[blam] Remove lock(this) from ChannelCollection
- From: Carlos MartÃn Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] Remove lock(this) from ChannelCollection
- Date: Thu, 25 Aug 2011 19:17:14 +0000 (UTC)
commit e62bee4c3423bb3de34bf34a6c69fd6ba25dd639
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date: Wed Aug 24 16:32:11 2011 +0200
Remove lock(this) from ChannelCollection
Signed-off-by: Carlos MartÃn Nieto <carlos cmartin tk>
src/ChannelCollection.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/ChannelCollection.cs b/src/ChannelCollection.cs
index dfc9f12..0e572ff 100644
--- a/src/ChannelCollection.cs
+++ b/src/ChannelCollection.cs
@@ -29,6 +29,7 @@ namespace Imendio.Blam {
private Queue mQueue;
private IList mRunningList;
+ private Object clock = new Object();
private bool mDirty = false;
private uint mTimeoutId = 0;
@@ -143,7 +144,7 @@ namespace Imendio.Blam {
public void SaveToFile ()
{
- lock (this) {
+ lock (clock) {
if (!mDirty) {
return;
}
@@ -348,7 +349,7 @@ namespace Imendio.Blam {
private void MarkAsDirty (bool dirty)
{
- lock (this) {
+ lock (clock) {
if (dirty) {
if (mTimeoutId != 0) {
GLib.Source.Remove (mTimeoutId);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]