1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-156 Threadpool - add thd_wait_begin/thd_wait_end to the network IO functions

This commit is contained in:
Vladislav Vaintroub
2013-02-19 20:44:33 +01:00
parent 35bc8f9f43
commit 41013f16a0
7 changed files with 66 additions and 16 deletions

View File

@@ -105,7 +105,9 @@ my_bool vio_is_connected(Vio *vio);
ssize_t vio_pending(Vio *vio);
#endif
/* Set timeout for a network operation. */
int vio_timeout(Vio *vio, uint which, int timeout_sec);
extern int vio_timeout(Vio *vio, uint which, int timeout_sec);
extern void vio_set_wait_callback(void (*before_wait)(void),
void (*after_wait)(void));
/* Connect to a peer. */
my_bool vio_socket_connect(Vio *vio, struct sockaddr *addr, socklen_t len,
int timeout);