View on GitHub

Vistle

Distributed Data-parallel Scientific Visualization in VR

spawnprocess.h
Go to the documentation of this file.
1#ifndef SPAWNPROCESS_H
2#define SPAWNPROCESS_H
3
4#include <string>
5#include <vector>
6#include "export.h"
7#include "sysdep.h"
8
9namespace vistle {
10
11#ifdef _WIN32
12typedef intptr_t process_handle;
13#else
14typedef long process_handle;
15#endif
16
17V_UTILEXPORT process_handle spawn_process(const std::string &executable, const std::vector<std::string> args);
18V_UTILEXPORT void replace_process(const std::string &executable, const std::vector<std::string> args);
20V_UTILEXPORT process_handle try_wait(int *status = nullptr);
21V_UTILEXPORT process_handle try_wait(process_handle pid, int *status = nullptr);
23
24} // namespace vistle
25#endif
Definition: allobjects.cpp:30
process_handle spawn_process(const std::string &executable, const std::vector< std::string > args)
Definition: spawnprocess.cpp:36
long process_handle
Definition: spawnprocess.h:14
bool kill_process(process_handle pid)
Definition: spawnprocess.cpp:116
process_handle get_process_handle()
Definition: spawnprocess.cpp:178
process_handle try_wait(int *status)
Definition: spawnprocess.cpp:125
void replace_process(const std::string &executable, const std::vector< std::string > args)
Definition: spawnprocess.cpp:100
#define V_UTILEXPORT
Definition: export.h:19