wxUSE_THREADS in sckint.h; wxMotif Clone error fixed; JPEG makefile.unx for wxMotif

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1999-05-09 21:42:36 +00:00
parent ba9838b991
commit a50fb9c083
4 changed files with 45 additions and 2 deletions

View File

@@ -61,6 +61,8 @@ class SockRequest
};
class wxSocketInternal;
#if wxUSE_THREADS
class SocketWaiter: public wxThread {
public:
SocketWaiter(wxSocketBase *socket, wxSocketInternal *internal);
@@ -100,6 +102,8 @@ class SocketRequester: public wxThread {
wxSocketInternal *m_internal;
int m_fd;
};
#endif
// wxUSE_THREADS
class wxSocketInternal {
public:
@@ -126,11 +130,13 @@ class wxSocketInternal {
SockRequest *WaitForReq();
void EndRequest(SockRequest *req);
public:
wxSocketBase *m_socket;
#if wxUSE_THREADS
wxMutex m_socket_locker, m_fd_locker, m_request_locker, m_end_requester;
wxCondition m_socket_cond;
wxSocketBase *m_socket;
SocketWaiter *m_thread_waiter;
SocketRequester *m_thread_requester;
#endif
wxList m_requests;
int m_fd;
bool m_invalid_requester;