diff options
author | Yehuda Sadeh <yehuda@redhat.com> | 2015-07-10 01:27:41 +0200 |
---|---|---|
committer | Yehuda Sadeh <yehuda@redhat.com> | 2016-02-09 21:52:08 +0100 |
commit | 2fbf80ff6ec6662ade4417b3eedd1761b9ddad3f (patch) | |
tree | 15a6988824cefae1df2199e34d7a3e884fa9ae9c /src/rgw/rgw_http_client.h | |
parent | rgw: threaded http manager groundwork (diff) | |
download | ceph-2fbf80ff6ec6662ade4417b3eedd1761b9ddad3f.tar.xz ceph-2fbf80ff6ec6662ade4417b3eedd1761b9ddad3f.zip |
rgw: more http aio stuff
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Diffstat (limited to 'src/rgw/rgw_http_client.h')
-rw-r--r-- | src/rgw/rgw_http_client.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rgw/rgw_http_client.h b/src/rgw/rgw_http_client.h index d9aa6cb9dbc..9b36dc722d8 100644 --- a/src/rgw/rgw_http_client.h +++ b/src/rgw/rgw_http_client.h @@ -54,6 +54,7 @@ class RGWHTTPManager { map<uint64_t, rgw_http_req_data *> reqs; int64_t num_reqs; int64_t max_threaded_req; + int thread_pipe[2]; void register_request(rgw_http_req_data *req_data); void unregister_request(rgw_http_req_data *req_data); @@ -74,11 +75,13 @@ class RGWHTTPManager { void *reqs_thread_entry(); + int signal_thread(); + public: RGWHTTPManager(CephContext *_cct); ~RGWHTTPManager(); - void set_threaded(); + int set_threaded(); void stop(); int add_request(RGWHTTPClient *client, const char *method, const char *url); |