summaryrefslogtreecommitdiffstats
path: root/abs/core/pycairo/pycairo-1.8.0-threading.diff
diff options
context:
space:
mode:
authorCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
committerCecil Hugh Watson <knoppmyth@gmail.com>2009-09-26 01:57:08 (GMT)
commit7b29169fff9e7c624890c5edffe85def8a293136 (patch)
tree47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/pycairo/pycairo-1.8.0-threading.diff
parentc491dea779dac29afff3578bf8245943817c2339 (diff)
downloadlinhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz
linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2
LinHES 6.01.00
Diffstat (limited to 'abs/core/pycairo/pycairo-1.8.0-threading.diff')
-rw-r--r--abs/core/pycairo/pycairo-1.8.0-threading.diff67
1 files changed, 67 insertions, 0 deletions
diff --git a/abs/core/pycairo/pycairo-1.8.0-threading.diff b/abs/core/pycairo/pycairo-1.8.0-threading.diff
new file mode 100644
index 0000000..ce1a80f
--- /dev/null
+++ b/abs/core/pycairo/pycairo-1.8.0-threading.diff
@@ -0,0 +1,67 @@
+diff -Naur pycairo-1.8.0-old/cairo/pycairo-surface.c pycairo-1.8.0/cairo/pycairo-surface.c
+--- pycairo-1.8.0-old/cairo/pycairo-surface.c 2008-12-10 17:41:16.000000000 +1000
++++ pycairo-1.8.0/cairo/pycairo-surface.c 2009-01-10 15:08:36.000000000 +1000
+@@ -310,10 +310,10 @@
+ return NULL;
+ }
+ Py_DECREF(writer);
+- Py_BEGIN_ALLOW_THREADS
++ /*Py_BEGIN_ALLOW_THREADS*/ /*seg faults reported*/
+ status = cairo_surface_write_to_png_stream (o->surface, _write_func,
+ file);
+- Py_END_ALLOW_THREADS
++ /*Py_END_ALLOW_THREADS*/
+ }
+ RETURN_NULL_IF_CAIRO_ERROR(status);
+ Py_RETURN_NONE;
+@@ -505,9 +505,9 @@
+ }
+ Py_DECREF(reader);
+
+- Py_BEGIN_ALLOW_THREADS
++ /*Py_BEGIN_ALLOW_THREADS*/ /*seg faults reported*/
+ is = cairo_image_surface_create_from_png_stream (_read_func, file);
+- Py_END_ALLOW_THREADS
++ /*Py_END_ALLOW_THREADS*/
+ return PycairoSurface_FromSurface (is, NULL);
+ }
+ #endif /* CAIRO_HAS_PNG_FUNCTIONS */
+@@ -712,10 +712,10 @@
+ }
+ Py_DECREF(writer);
+
+- Py_BEGIN_ALLOW_THREADS
++ /*Py_BEGIN_ALLOW_THREADS*/ /*seg faults reported*/
+ sfc = cairo_pdf_surface_create_for_stream (_write_func, file,
+ width_in_points, height_in_points);
+- Py_END_ALLOW_THREADS
++ /*Py_END_ALLOW_THREADS*/
+ return PycairoSurface_FromSurface (sfc, file);
+ }
+
+@@ -818,10 +818,10 @@
+ }
+ Py_DECREF(writer);
+
+- Py_BEGIN_ALLOW_THREADS
++ /*Py_BEGIN_ALLOW_THREADS*/ /*seg faults reported*/
+ sfc = cairo_ps_surface_create_for_stream (_write_func, file,
+ width_in_points, height_in_points);
+- Py_END_ALLOW_THREADS
++ /*Py_END_ALLOW_THREADS*/
+ return PycairoSurface_FromSurface (sfc, file);
+ }
+
+@@ -1010,10 +1010,10 @@
+ }
+ Py_DECREF(writer);
+
+- Py_BEGIN_ALLOW_THREADS
++ /*Py_BEGIN_ALLOW_THREADS*/ /*seg faults reported*/
+ sfc = cairo_svg_surface_create_for_stream (_write_func, file,
+ width_in_points, height_in_points);
+- Py_END_ALLOW_THREADS
++ /*Py_END_ALLOW_THREADS*/
+ return PycairoSurface_FromSurface (sfc, file);
+ }
+