[blam] Lock on this and not some new object
- From: Carlos MartÃn Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] Lock on this and not some new object
- Date: Tue, 23 Aug 2011 23:14:29 +0000 (UTC)
commit c6eb13bd0c3d2004d20df90c4465074a1e2bec4c
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date: Wed Aug 24 01:14:25 2011 +0200
Lock on this and not some new object
Signed-off-by: Carlos MartÃn Nieto <carlos cmartin tk>
src/Item.cs | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/Item.cs b/src/Item.cs
index caaca62..0193535 100644
--- a/src/Item.cs
+++ b/src/Item.cs
@@ -18,7 +18,6 @@ namespace Imendio.Blam {
public string keywords = "";
private int ref_cnt = 0;
- private Object obj = new Object();
public delegate void UpdateHandler(Item item);
public event UpdateHandler Updated;
@@ -117,14 +116,14 @@ namespace Imendio.Blam {
public Item(SyndicationItem item) : base(item)
{
- lock(obj){
+ lock(this){
FillItem(item);
}
}
public bool Update(SyndicationItem item)
{
- lock(obj){
+ lock(this){
FillItem(item);
}
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]