Hi all,

I've attached a patch to prevent copying PdfMutex
instances because POSIX didn't define mutex assignment
and copying PdfMutex would lead to that AFAIK.

I've used it for developing the previous patch of mine
(for PdfOutlineItem), but it is separate, and please
review, test (I only build-tested static & shared native)
and if accepted apply and commit it separately to the
public repository.

Best regards, mabri
Index: src/base/util/PdfMutex.h
===================================================================
--- src/base/util/PdfMutex.h	(revision 1721)
+++ src/base/util/PdfMutex.h	(working copy)
@@ -72,6 +72,9 @@
   public:
     PdfMutex() { }
     ~PdfMutex() { }
+  private:
+    PdfMutex(const PdfMutex&); // uncopyable, copy constructor unimplemented
+    PdfMutex& operator=(const PdfMutex&); // assignment operator impossible
 };
 
 };};
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to