add support for asynchronous execution in wxBase (patch 1906889)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -30,14 +30,14 @@ public:
|
||||
// wxBase
|
||||
//
|
||||
// if it returns false, we should return from wxExecute() with an error
|
||||
virtual bool CreateEndProcessPipe(wxExecuteData& execData) = 0;
|
||||
virtual bool CreateEndProcessPipe(wxExecuteData& execData);
|
||||
|
||||
// test if the given descriptor is the end of the pipe create by the
|
||||
// function above
|
||||
virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd) = 0;
|
||||
virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
|
||||
|
||||
// ensure that the write end of the pipe is not closed by wxPipe dtor
|
||||
virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData) = 0;
|
||||
virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
|
||||
|
||||
// wait for the process termination, return whatever wxExecute() must
|
||||
// return
|
||||
|
@@ -22,9 +22,6 @@ public:
|
||||
#if wxUSE_CONSOLE_EVENTLOOP
|
||||
virtual wxEventLoopBase *CreateEventLoop();
|
||||
#endif // wxUSE_CONSOLE_EVENTLOOP
|
||||
virtual bool CreateEndProcessPipe(wxExecuteData& execData);
|
||||
virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
|
||||
virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
|
||||
virtual int WaitForChild(wxExecuteData& execData);
|
||||
#if wxUSE_TIMER
|
||||
virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
|
||||
@@ -37,9 +34,6 @@ class WXDLLEXPORT wxGUIAppTraits : public wxGUIAppTraitsBase
|
||||
{
|
||||
public:
|
||||
virtual wxEventLoopBase *CreateEventLoop();
|
||||
virtual bool CreateEndProcessPipe(wxExecuteData& execData);
|
||||
virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd);
|
||||
virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData);
|
||||
virtual int WaitForChild(wxExecuteData& execData);
|
||||
#if wxUSE_TIMER
|
||||
virtual wxTimerImpl *CreateTimerImpl(wxTimer *timer);
|
||||
|
@@ -15,7 +15,7 @@
|
||||
class WXDLLIMPEXP_FWD_BASE wxProcess;
|
||||
class wxStreamTempInputBuffer;
|
||||
|
||||
#if defined(__WXDFB__) || defined(__WXX11__)
|
||||
#if defined(__UNIX__)
|
||||
#define wxHAS_GENERIC_PROCESS_CALLBACK 1
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user