]> git.cworth.org Git - apitrace/blobdiff - common/trace_writer_local.hpp
retrace: Implement glxCopySubBufferMESA
[apitrace] / common / trace_writer_local.hpp
index 1859354055c672f39b25ec96ea1ccd49a1f1d84d..358455a955a6d2bfe6c0fdd409a734e04a5e312d 100644 (file)
@@ -34,6 +34,7 @@
 #include <stdint.h>
 
 #include "os_thread.hpp"
+#include "os_process.hpp"
 #include "trace_writer.hpp"
 
 
@@ -70,6 +71,13 @@ namespace trace {
         os::recursive_mutex mutex;
         int acquired;
 
+        /**
+         * ID of the processed that opened the trace file.
+         */
+        os::ProcessId pid;
+
+        void checkProcessId();
+
     public:
         /**
          * Should never called directly -- use localWriter singleton below