Skip to content
Snippets Groups Projects
Commit dc8d2779 authored by Nicky's avatar Nicky Committed by Nat Goodspeed
Browse files

Do not use string/chrono literals, sadly that won't work with GCC (4.9)

parent 69de6ece
No related branches found
No related tags found
No related merge requests found
......@@ -39,13 +39,11 @@
#include "llexception.h"
#include "stringize.h"
using namespace std::literals;
//=========================================================================
// Map of pool sizes for known pools
static const std::map<std::string, U32> DefaultPoolSizes{
{"Upload"s, 1},
{"AIS"s, 1},
{std::string("Upload"), 1},
{std::string("AIS"), 1},
// *TODO: Rider for the moment keep AIS calls serialized otherwise the COF will tend to get out of sync.
};
......@@ -349,7 +347,7 @@ void LLCoprocedurePool::coprocedureInvokerCoro(LLCoreHttpUtil::HttpCoroutineAdap
{
QueuedCoproc::ptr_t coproc;
boost::fibers::channel_op_status status;
while ((status = mPendingCoprocs.pop_wait_for(coproc, 10s)) != boost::fibers::channel_op_status::closed)
while ((status = mPendingCoprocs.pop_wait_for(coproc, std::chrono::seconds(10))) != boost::fibers::channel_op_status::closed)
{
if(status == boost::fibers::channel_op_status::timeout)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment