[f-spot: 29/40] add a comment about the previous commit
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 29/40] add a comment about the previous commit
- Date: Wed, 24 Jun 2009 09:50:08 +0000 (UTC)
commit dffccaa27eeb9b6b052ffa338ce2e6950440a9e6
Author: Stephane Delcroix <stephane delcroix org>
Date: Mon Jun 22 15:06:05 2009 +0200
add a comment about the previous commit
src/ImageLoader.cs | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/ImageLoader.cs b/src/ImageLoader.cs
index f967129..34aa70c 100644
--- a/src/ImageLoader.cs
+++ b/src/ImageLoader.cs
@@ -70,6 +70,9 @@ namespace FSpot {
image_stream = image_file.PixbufStream ();
pixbuf_orientation = image_file.Orientation;
}
+
+ // The ThreadPool.QueueUserWorkItem hack is there cause, as the bytes to read are present in the stream,
+ // the Read is CompletedAsynchronously, blocking the mainloop
image_stream.BeginRead (buffer, 0, count, delegate (IAsyncResult r) {
ThreadPool.QueueUserWorkItem (delegate {HandleReadDone (r);});
}, null);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]