diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-27 00:00:01 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-27 00:00:01 +0300 |
commit | 26f425f0153de537bc676c9c38a68ef3edd882c5 (patch) | |
tree | 93f1177bfbc5f6e29bc4de2a64a476edf4264052 /gpg_wrapper.h | |
parent | b06316ffd29888f749d927577e15ced4945cc5d0 (diff) |
using threads, gpg execution timeout, fixed high cpu usage when waiting gpg process
Diffstat (limited to 'gpg_wrapper.h')
-rw-r--r-- | gpg_wrapper.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gpg_wrapper.h b/gpg_wrapper.h index 9c0d513..6b0baea 100644 --- a/gpg_wrapper.h +++ b/gpg_wrapper.h @@ -14,6 +14,17 @@ typedef enum { }
pxResult;
-pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD aexitcode);
+pxResult pxExecute(wstring *acommandline, char *ainput, string *aoutput, LPDWORD aexitcode, pxResult *result);
+
+struct gpg_execution_params
+{
+ wstring *cmd;
+ char *useless;
+ string *out;
+ LPDWORD code;
+ pxResult *result;
+};
+
+void pxEexcute_thread(void *param);
#endif
\ No newline at end of file |