Fix Windows build.
[dcpomatic.git] / src / lib / cross.cc
index 7996070982c84ec32b536d1decea82a20460bfb2..a213436a3c3f973aafccb83e7a800aa07b417fc1 100644 (file)
@@ -396,3 +396,13 @@ start_batch_converter (boost::filesystem::path dcpomatic)
        CreateProcess (0, cmd, 0, 0, FALSE, 0, 0, 0, &startup_info, &process_info);
 #endif
 }
+
+int
+thread_id ()
+{
+#ifdef DCPOMATIC_WINDOWS
+       return (int) GetCurrentThreadId ();
+#else
+       return (int) pthread_self ();
+#endif
+}