diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-12-06 22:59:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-12-08 11:19:19 +0100 |
| commit | 152197adf5b060602ecdd99e6f272c4e8b2b410e (patch) | |
| tree | 153cd87897b1d172d2ed3132524ff7c22bb5acc0 /src/lib/cross_osx.cc | |
| parent | 6a5c7209770aa2c20d702b6f31d877ad2864ece7 (diff) | |
Add get_process_id()
Diffstat (limited to 'src/lib/cross_osx.cc')
| -rw-r--r-- | src/lib/cross_osx.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/cross_osx.cc b/src/lib/cross_osx.cc index 29ef283e6..a16907ebe 100644 --- a/src/lib/cross_osx.cc +++ b/src/lib/cross_osx.cc @@ -586,3 +586,9 @@ DCPOMATIC_ENABLE_WARNINGS TransformProcessType (&serial, kProcessTransformToForegroundApplication); } + +string +dcpomatic::get_process_id () +{ + return dcp::raw_convert<string>(getpid()); +} |
