lib/curl/Multi: add noexcept
This commit is contained in:
parent
963ff1997d
commit
bbf190fc42
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2016-2020 Max Kellermann <max.kellermann@gmail.com>
|
* Copyright 2011-2023 Max Kellermann <max.kellermann@gmail.com>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@ -27,15 +27,13 @@
|
|||||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef CURL_MULTI_HXX
|
#pragma once
|
||||||
#define CURL_MULTI_HXX
|
|
||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <utility>
|
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <cstddef>
|
#include <utility>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An OO wrapper for a "CURLM*" (a libCURL "multi" handle).
|
* An OO wrapper for a "CURLM*" (a libCURL "multi" handle).
|
||||||
@ -101,7 +99,7 @@ public:
|
|||||||
throw std::runtime_error(curl_multi_strerror(code));
|
throw std::runtime_error(curl_multi_strerror(code));
|
||||||
}
|
}
|
||||||
|
|
||||||
CURLMsg *InfoRead() {
|
CURLMsg *InfoRead() noexcept {
|
||||||
int msgs_in_queue;
|
int msgs_in_queue;
|
||||||
return curl_multi_info_read(handle, &msgs_in_queue);
|
return curl_multi_info_read(handle, &msgs_in_queue);
|
||||||
}
|
}
|
||||||
@ -127,5 +125,3 @@ public:
|
|||||||
return Wait(timeout.count());
|
return Wait(timeout.count());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Loading…
Reference in New Issue
Block a user