rocksdb/port/win
Peter Dillinger 318fe6941a Add port::GetProcessID() (#8693)
Summary:
Useful in some places for object uniqueness across processes.
Currently used for generating a host-wide identifier of Cache objects
but expected to be used soon in some unique id generation code.

`int64_t` is chosen for return type because POSIX uses signed integer type,
usually `int`, for `pid_t` and Windows uses `DWORD`, which is `uint32_t`.

Future work: avoid copy-pasted declarations in port_*.h, perhaps with
port_common.h always included from port.h

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8693

Test Plan: manual for now

Reviewed By: ajkr, anand1976

Differential Revision: D30492876

Pulled By: pdillinger

fbshipit-source-id: 39fc2788623cc9f4787866bdb67a4d183dde7eef
2021-08-24 17:46:14 -07:00
..
env_default.cc Create a CustomEnv class; Add WinFileSystem; Make LegacyFileSystemWrapper private (#7703) 2021-01-06 10:49:32 -08:00
env_win.cc Support dynamic sector size in alignment validation for Windows. (#8613) 2021-08-16 07:31:57 -07:00
env_win.h Allow using WindowsThread with Mingw (#8108) 2021-06-29 06:52:08 -07:00
io_win.cc Support dynamic sector size in alignment validation for Windows. (#8613) 2021-08-16 07:31:57 -07:00
io_win.h Support dynamic sector size in alignment validation for Windows. (#8613) 2021-08-16 07:31:57 -07:00
port_win.cc Add port::GetProcessID() (#8693) 2021-08-24 17:46:14 -07:00
port_win.h Add port::GetProcessID() (#8693) 2021-08-24 17:46:14 -07:00
win_jemalloc.cc build: make it compile with @mode/win (#7406) 2020-09-23 12:55:54 -07:00
win_logger.cc Use SystemClock* instead of std::shared_ptr<SystemClock> in lower level routines (#8033) 2021-03-15 04:34:11 -07:00
win_logger.h Use SystemClock* instead of std::shared_ptr<SystemClock> in lower level routines (#8033) 2021-03-15 04:34:11 -07:00
win_thread.cc Allow using WindowsThread with Mingw (#8108) 2021-06-29 06:52:08 -07:00
win_thread.h Allow using WindowsThread with Mingw (#8108) 2021-06-29 06:52:08 -07:00
xpress_win.cc Introduce a helper method UncompressData (#7434) 2020-09-25 09:01:45 -07:00
xpress_win.h Introduce a helper method UncompressData (#7434) 2020-09-25 09:01:45 -07:00