mirror of
https://github.com/falk-werner/webfuse
synced 2024-10-27 20:34:10 +00:00
removed server timeout (breaking change)
This commit is contained in:
parent
74c1c44655
commit
357ca12e65
@ -46,16 +46,12 @@ extern WF_API void wf_server_dispose(
|
||||
/// This function must be invoked in a loop while the server is running. It
|
||||
/// makes the server wait for the next event and processes it.
|
||||
///
|
||||
/// \note timeout_ms is no longer used
|
||||
///
|
||||
/// \param server pointer to server
|
||||
/// \param timeout_ms unused; set to 0; used for backward compatibility
|
||||
///
|
||||
/// \see wf_server_interrupt
|
||||
//------------------------------------------------------------------------------
|
||||
extern WF_API void wf_server_service(
|
||||
struct wf_server * server,
|
||||
int timeout_ms);
|
||||
struct wf_server * server);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// \brief Interrupts wf_server_service
|
||||
|
@ -78,16 +78,12 @@ extern WFP_API void wfp_client_dispose(
|
||||
/// This function must be invoked in a loop while the client is running. It
|
||||
/// makes the server wait for the next event and processes it.
|
||||
///
|
||||
/// \note timeout is ignored
|
||||
///
|
||||
/// \param client pointer to client
|
||||
/// \param timeout_ms unused; set to 0; for backward compatibilty
|
||||
///
|
||||
/// \see wfp_client_interrupt
|
||||
//------------------------------------------------------------------------------
|
||||
extern WFP_API void wfp_client_service(
|
||||
struct wfp_client * client,
|
||||
int timeout_ms);
|
||||
struct wfp_client * client);
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
/// \brief interrupt wfp_client_service
|
||||
|
@ -23,8 +23,7 @@ void wf_server_dispose(
|
||||
}
|
||||
|
||||
void wf_server_service(
|
||||
struct wf_server * server,
|
||||
int WF_UNUSED_PARAM(imeout_ms))
|
||||
struct wf_server * server)
|
||||
{
|
||||
wf_impl_server_service(server);
|
||||
}
|
||||
|
@ -231,8 +231,7 @@ void wfp_client_dispose(
|
||||
}
|
||||
|
||||
void wfp_client_service(
|
||||
struct wfp_client * client,
|
||||
int WF_UNUSED_PARAM(timeout_ms))
|
||||
struct wfp_client * client)
|
||||
{
|
||||
wfp_impl_client_service(client);
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
wfp_client_connect(client, url);
|
||||
while (!wfp_impl_client_is_connected(client))
|
||||
{
|
||||
wfp_client_service(client, 100);
|
||||
wfp_client_service(client);
|
||||
}
|
||||
|
||||
thread = std::thread(Run, this);
|
||||
@ -65,7 +65,7 @@ private:
|
||||
{
|
||||
while (!context->IsShutdownRequested())
|
||||
{
|
||||
wfp_client_service(context->client, 100);
|
||||
wfp_client_service(context->client);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ public:
|
||||
|
||||
while (!wf_impl_server_is_operational(server))
|
||||
{
|
||||
wf_server_service(server, 100);
|
||||
wf_server_service(server);
|
||||
}
|
||||
|
||||
thread = std::thread(Run, this);
|
||||
@ -104,7 +104,7 @@ private:
|
||||
{
|
||||
while (!context->IsShutdownRequested())
|
||||
{
|
||||
wf_server_service(context->server, 100);
|
||||
wf_server_service(context->server);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user