diff options
Diffstat (limited to 'indra')
47 files changed, 323 insertions, 323 deletions
| diff --git a/indra/llcommon/lleventcoro.cpp b/indra/llcommon/lleventcoro.cpp index 66cc7cada0..031c2cffb0 100755 --- a/indra/llcommon/lleventcoro.cpp +++ b/indra/llcommon/lleventcoro.cpp @@ -45,14 +45,14 @@ namespace  {  /** - * waitForEventOn() permits a coroutine to temporarily listen on an + * suspendUntilEventOn() permits a coroutine to temporarily listen on an   * LLEventPump any number of times. We don't really want to have to ask   * the caller to label each such call with a distinct string; the whole - * point of waitForEventOn() is to present a nice sequential interface to + * point of suspendUntilEventOn() is to present a nice sequential interface to   * the underlying LLEventPump-with-named-listeners machinery. So we'll use   * LLEventPump::inventName() to generate a distinct name for each   * temporary listener. On the other hand, because a given coroutine might - * call waitForEventOn() any number of times, we don't really want to + * call suspendUntilEventOn() any number of times, we don't really want to   * consume an arbitrary number of generated inventName()s: that namespace,   * though large, is nonetheless finite. So we memoize an invented name for   * each distinct coroutine instance. @@ -73,7 +73,7 @@ std::string listenerNameForCoro()  }  /** - * Implement behavior described for postAndWait()'s @a replyPumpNamePath + * Implement behavior described for postEventAndSuspend()'s @a replyPumpNamePath   * parameter:   *   * * If <tt>path.isUndefined()</tt>, do nothing. @@ -145,15 +145,15 @@ void storeToLLSDPath(LLSD& dest, const LLSD& rawPath, const LLSD& value)  } // anonymous -void llcoro::yield() +void llcoro::suspend()  {      // By viewer convention, we post an event on the "mainloop" LLEventPump      // each iteration of the main event-handling loop. So waiting for a single -    // event on "mainloop" gives us a one-frame yield. -    waitForEventOn("mainloop"); +    // event on "mainloop" gives us a one-frame suspend. +    suspendUntilEventOn("mainloop");  } -LLSD llcoro::postAndWait(const LLSD& event, const LLEventPumpOrPumpName& requestPump, +LLSD llcoro::postEventAndSuspend(const LLSD& event, const LLEventPumpOrPumpName& requestPump,                   const LLEventPumpOrPumpName& replyPump, const LLSD& replyPumpNamePath)  {      // declare the future @@ -171,7 +171,7 @@ LLSD llcoro::postAndWait(const LLSD& event, const LLEventPumpOrPumpName& request          // request event.          LLSD modevent(event);          storeToLLSDPath(modevent, replyPumpNamePath, replyPump.getPump().getName()); -        LL_DEBUGS("lleventcoro") << "postAndWait(): coroutine " << listenerName +        LL_DEBUGS("lleventcoro") << "postEventAndSuspend(): coroutine " << listenerName                                   << " posting to " << requestPump.getPump().getName()                                   << LL_ENDL; @@ -179,7 +179,7 @@ LLSD llcoro::postAndWait(const LLSD& event, const LLEventPumpOrPumpName& request          //                         << ": " << modevent << LL_ENDL;          requestPump.getPump().post(modevent);      } -    LL_DEBUGS("lleventcoro") << "postAndWait(): coroutine " << listenerName +    LL_DEBUGS("lleventcoro") << "postEventAndSuspend(): coroutine " << listenerName                               << " about to wait on LLEventPump " << replyPump.getPump().getName()                               << LL_ENDL;      // trying to dereference ("resolve") the future makes us wait for it @@ -189,7 +189,7 @@ LLSD llcoro::postAndWait(const LLSD& event, const LLEventPumpOrPumpName& request          llcoro::Suspending suspended;          value = *future;      } // destroy Suspending as soon as we're back -    LL_DEBUGS("lleventcoro") << "postAndWait(): coroutine " << listenerName +    LL_DEBUGS("lleventcoro") << "postEventAndSuspend(): coroutine " << listenerName                               << " resuming with " << value << LL_ENDL;      // returning should disconnect the connection      return value; @@ -199,7 +199,7 @@ namespace  {  /** - * This helper is specifically for the two-pump version of waitForEventOn(). + * This helper is specifically for the two-pump version of suspendUntilEventOn().   * We use a single future object, but we want to listen on two pumps with it.   * Since we must still adapt from (the callable constructed by)   * boost::dcoroutines::make_callback() (void return) to provide an event @@ -242,7 +242,7 @@ WaitForEventOnHelper<LISTENER> wfeoh(const LISTENER& listener, int discriminator  namespace llcoro  { -LLEventWithID postAndWait2(const LLSD& event, +LLEventWithID postEventAndSuspend2(const LLSD& event,                             const LLEventPumpOrPumpName& requestPump,                             const LLEventPumpOrPumpName& replyPump0,                             const LLEventPumpOrPumpName& replyPump1, @@ -270,12 +270,12 @@ LLEventWithID postAndWait2(const LLSD& event,                          replyPump0.getPump().getName());          storeToLLSDPath(modevent, replyPump1NamePath,                          replyPump1.getPump().getName()); -        LL_DEBUGS("lleventcoro") << "postAndWait2(): coroutine " << name +        LL_DEBUGS("lleventcoro") << "postEventAndSuspend2(): coroutine " << name                                   << " posting to " << requestPump.getPump().getName()                                   << ": " << modevent << LL_ENDL;          requestPump.getPump().post(modevent);      } -    LL_DEBUGS("lleventcoro") << "postAndWait2(): coroutine " << name +    LL_DEBUGS("lleventcoro") << "postEventAndSuspend2(): coroutine " << name                               << " about to wait on LLEventPumps " << replyPump0.getPump().getName()                               << ", " << replyPump1.getPump().getName() << LL_ENDL;      // trying to dereference ("resolve") the future makes us wait for it @@ -285,7 +285,7 @@ LLEventWithID postAndWait2(const LLSD& event,          llcoro::Suspending suspended;          value = *future;      } // destroy Suspending as soon as we're back -    LL_DEBUGS("lleventcoro") << "postAndWait(): coroutine " << name +    LL_DEBUGS("lleventcoro") << "postEventAndSuspend(): coroutine " << name                               << " resuming with (" << value.first << ", " << value.second << ")"                               << LL_ENDL;      // returning should disconnect both connections diff --git a/indra/llcommon/lleventcoro.h b/indra/llcommon/lleventcoro.h index 8f3ee38fb4..a09759c9cf 100755 --- a/indra/llcommon/lleventcoro.h +++ b/indra/llcommon/lleventcoro.h @@ -106,33 +106,33 @@ VoidListener<LISTENER> voidlistener(const LISTENER& listener)   * runs without suspending for nontrivial time, sprinkle in calls to this   * function to avoid stalling the rest of the viewer processing.   */ -void yield(); +void suspend();  /** - * Post specified LLSD event on the specified LLEventPump, then wait for a + * Post specified LLSD event on the specified LLEventPump, then suspend for a   * response on specified other LLEventPump. This is more than mere   * convenience: the difference between this function and the sequence   * @code   * requestPump.post(myEvent); - * LLSD reply = waitForEventOn(replyPump); + * LLSD reply = suspendUntilEventOn(replyPump);   * @endcode   * is that the sequence above fails if the reply is posted immediately on   * @a replyPump, that is, before <tt>requestPump.post()</tt> returns. In the   * sequence above, the running coroutine isn't even listening on @a replyPump - * until <tt>requestPump.post()</tt> returns and @c waitForEventOn() is + * until <tt>requestPump.post()</tt> returns and @c suspendUntilEventOn() is   * entered. Therefore, the coroutine completely misses an immediate reply - * event, making it wait indefinitely. + * event, making it suspend indefinitely.   * - * By contrast, postAndWait() listens on the @a replyPump @em before posting + * By contrast, postEventAndSuspend() listens on the @a replyPump @em before posting   * the specified LLSD event on the specified @a requestPump.   *   * @param event LLSD data to be posted on @a requestPump   * @param requestPump an LLEventPump on which to post @a event. Pass either   * the LLEventPump& or its string name. However, if you pass a   * default-constructed @c LLEventPumpOrPumpName, we skip the post() call. - * @param replyPump an LLEventPump on which postAndWait() will listen for a + * @param replyPump an LLEventPump on which postEventAndSuspend() will listen for a   * reply. Pass either the LLEventPump& or its string name. The calling - * coroutine will wait until that reply arrives. (If you're concerned about a + * coroutine will suspend until that reply arrives. (If you're concerned about a   * reply that might not arrive, please see also LLEventTimeout.)   * @param replyPumpNamePath specifies the location within @a event in which to   * store <tt>replyPump.getName()</tt>. This is a strictly optional convenience @@ -155,21 +155,21 @@ void yield();   *   @a replyPumpNamePath specifies the entry in the lowest-level structure in   *   @a event into which to store <tt>replyPump.getName()</tt>.   */ -LLSD postAndWait(const LLSD& event, const LLEventPumpOrPumpName& requestPump, +LLSD postEventAndSuspend(const LLSD& event, const LLEventPumpOrPumpName& requestPump,                   const LLEventPumpOrPumpName& replyPump, const LLSD& replyPumpNamePath=LLSD());  /// Wait for the next event on the specified LLEventPump. Pass either the  /// LLEventPump& or its string name.  inline -LLSD waitForEventOn(const LLEventPumpOrPumpName& pump) +LLSD suspendUntilEventOn(const LLEventPumpOrPumpName& pump)  { -    // This is now a convenience wrapper for postAndWait(). -    return postAndWait(LLSD(), LLEventPumpOrPumpName(), pump); +    // This is now a convenience wrapper for postEventAndSuspend(). +    return postEventAndSuspend(LLSD(), LLEventPumpOrPumpName(), pump);  }  } // namespace llcoro -/// return type for two-pump variant of waitForEventOn() +/// return type for two-pump variant of suspendUntilEventOn()  typedef std::pair<LLSD, int> LLEventWithID;  namespace llcoro @@ -177,7 +177,7 @@ namespace llcoro  /**   * This function waits for a reply on either of two specified LLEventPumps. - * Otherwise, it closely resembles postAndWait(); please see the documentation + * Otherwise, it closely resembles postAndSuspend(); please see the documentation   * for that function for detailed parameter info.   *   * While we could have implemented the single-pump variant in terms of this @@ -192,19 +192,19 @@ namespace llcoro   * the index of the pump on which it arrived (0 or 1).   *   * @note - * I'd have preferred to overload the name postAndWait() for both signatures. + * I'd have preferred to overload the name postAndSuspend() for both signatures.   * But consider the following ambiguous call:   * @code - * postAndWait(LLSD(), requestPump, replyPump, "someString"); + * postAndSuspend(LLSD(), requestPump, replyPump, "someString");   * @endcode   * "someString" could be converted to either LLSD (@a replyPumpNamePath for   * the single-pump function) or LLEventOrPumpName (@a replyPump1 for two-pump   * function).   * - * It seems less burdensome to write postAndWait2() than to write either + * It seems less burdensome to write postEventAndSuspend2() than to write either   * LLSD("someString") or LLEventOrPumpName("someString").   */ -LLEventWithID postAndWait2(const LLSD& event, +LLEventWithID postEventAndSuspend2(const LLSD& event,                             const LLEventPumpOrPumpName& requestPump,                             const LLEventPumpOrPumpName& replyPump0,                             const LLEventPumpOrPumpName& replyPump1, @@ -216,17 +216,17 @@ LLEventWithID postAndWait2(const LLSD& event,   */  inline  LLEventWithID -waitForEventOn(const LLEventPumpOrPumpName& pump0, const LLEventPumpOrPumpName& pump1) +suspendUntilEventOn(const LLEventPumpOrPumpName& pump0, const LLEventPumpOrPumpName& pump1)  { -    // This is now a convenience wrapper for postAndWait2(). -    return postAndWait2(LLSD(), LLEventPumpOrPumpName(), pump0, pump1); +    // This is now a convenience wrapper for postEventAndSuspend2(). +    return postEventAndSuspend2(LLSD(), LLEventPumpOrPumpName(), pump0, pump1);  }  /** - * Helper for the two-pump variant of waitForEventOn(), e.g.: + * Helper for the two-pump variant of suspendUntilEventOn(), e.g.:   *   * @code - * LLSD reply = errorException(waitForEventOn(replyPump, errorPump), + * LLSD reply = errorException(suspendUntilEventOn(replyPump, errorPump),   *                             "error response from login.cgi");   * @endcode   * @@ -286,7 +286,7 @@ LL_COMMON_API LLSD errorLog(const LLEventWithID& result, const std::string& desc   * 2. Provide its actual name to the event API in question as the name of the   *    reply LLEventPump.   * 3. Initiate the request to the event API. - * 4. Call your LLEventTempStream's wait() method to wait for the reply. + * 4. Call your LLEventTempStream's suspend() method to suspend for the reply.   * 5. Let the LLCoroEventPump go out of scope.   */  class LL_COMMON_API LLCoroEventPump @@ -304,15 +304,15 @@ public:      /**       * Wait for an event on this LLEventPump.       */ -    LLSD wait() +    LLSD suspend()      { -        return llcoro::waitForEventOn(mPump); +        return llcoro::suspendUntilEventOn(mPump);      } -    LLSD postAndWait(const LLSD& event, const LLEventPumpOrPumpName& requestPump, +    LLSD postAndSuspend(const LLSD& event, const LLEventPumpOrPumpName& requestPump,                       const LLSD& replyPumpNamePath=LLSD())      { -        return llcoro::postAndWait(event, requestPump, mPump, replyPumpNamePath); +        return llcoro::postEventAndSuspend(event, requestPump, mPump, replyPumpNamePath);      }  private: @@ -348,49 +348,49 @@ public:      /// request pump 1      LLEventPump& getPump1() { return mPump1; } -    /// waitForEventOn(either of our two LLEventPumps) -    LLEventWithID wait() +    /// suspendUntilEventOn(either of our two LLEventPumps) +    LLEventWithID suspend()      { -        return llcoro::waitForEventOn(mPump0, mPump1); +        return llcoro::suspendUntilEventOn(mPump0, mPump1);      } -    /// errorException(wait()) -    LLSD waitWithException() +    /// errorException(suspend()) +    LLSD suspendWithException()      { -        return llcoro::errorException(wait(), std::string("Error event on ") + getName1()); +        return llcoro::errorException(suspend(), std::string("Error event on ") + getName1());      } -    /// errorLog(wait()) -    LLSD waitWithLog() +    /// errorLog(suspend()) +    LLSD suspendWithLog()      { -        return llcoro::errorLog(wait(), std::string("Error event on ") + getName1()); +        return llcoro::errorLog(suspend(), std::string("Error event on ") + getName1());      } -    LLEventWithID postAndWait(const LLSD& event, +    LLEventWithID postAndSuspend(const LLSD& event,                                const LLEventPumpOrPumpName& requestPump,                                const LLSD& replyPump0NamePath=LLSD(),                                const LLSD& replyPump1NamePath=LLSD())      { -        return llcoro::postAndWait2(event, requestPump, mPump0, mPump1, +        return llcoro::postEventAndSuspend2(event, requestPump, mPump0, mPump1,                                      replyPump0NamePath, replyPump1NamePath);      } -    LLSD postAndWaitWithException(const LLSD& event, +    LLSD postAndSuspendWithException(const LLSD& event,                                    const LLEventPumpOrPumpName& requestPump,                                    const LLSD& replyPump0NamePath=LLSD(),                                    const LLSD& replyPump1NamePath=LLSD())      { -        return llcoro::errorException(postAndWait(event, requestPump, +        return llcoro::errorException(postAndSuspend(event, requestPump,                                                    replyPump0NamePath, replyPump1NamePath),                                        std::string("Error event on ") + getName1());      } -    LLSD postAndWaitWithLog(const LLSD& event, +    LLSD postAndSuspendWithLog(const LLSD& event,                              const LLEventPumpOrPumpName& requestPump,                              const LLSD& replyPump0NamePath=LLSD(),                              const LLSD& replyPump1NamePath=LLSD())      { -        return llcoro::errorLog(postAndWait(event, requestPump, +        return llcoro::errorLog(postAndSuspend(event, requestPump,                                              replyPump0NamePath, replyPump1NamePath),                                  std::string("Error event on ") + getName1());      } diff --git a/indra/llcommon/llprocess.cpp b/indra/llcommon/llprocess.cpp index 715df36f39..a8a772b7df 100755 --- a/indra/llcommon/llprocess.cpp +++ b/indra/llcommon/llprocess.cpp @@ -710,7 +710,7 @@ LLProcess::LLProcess(const LLSDOrParams& params):  		// Tie the lifespan of this child process to the lifespan of our APR  		// pool: on destruction of the pool, forcibly kill the process. Tell -		// APR to try SIGTERM and wait 3 seconds. If that didn't work, use +		// APR to try SIGTERM and suspend 3 seconds. If that didn't work, use  		// SIGKILL.  		apr_pool_note_subprocess(gAPRPoolp, &mProcess, APR_KILL_AFTER_TIMEOUT);  |*==========================================================================*/ @@ -986,9 +986,9 @@ void LLProcess::handle_status(int reason, int status)  //	wi->rv = apr_proc_wait(wi->child, &wi->rc, &wi->why, APR_NOWAIT);  	// It's just wrong to call apr_proc_wait() here. The only way APR knows to  	// call us with APR_OC_REASON_DEATH is that it's already reaped this child -	// process, so calling wait() will only produce "huh?" from the OS. We +	// process, so calling suspend() will only produce "huh?" from the OS. We  	// must rely on the status param passed in, which unfortunately comes -	// straight from the OS wait() call, which means we have to decode it by +	// straight from the OS suspend() call, which means we have to decode it by  	// hand.  	mStatus = interpret_status(status);  	LL_INFOS("LLProcess") << getStatusString() << LL_ENDL; @@ -1231,7 +1231,7 @@ static std::string WindowsErrorString(const std::string& operation)  #include <signal.h>  #include <fcntl.h>  #include <errno.h> -#include <sys/wait.h> +#include <sys/suspend.h>  void LLProcess::autokill()  { diff --git a/indra/llcommon/tests/lleventcoro_test.cpp b/indra/llcommon/tests/lleventcoro_test.cpp index 00be5035f2..5cced69670 100755 --- a/indra/llcommon/tests/lleventcoro_test.cpp +++ b/indra/llcommon/tests/lleventcoro_test.cpp @@ -129,8 +129,8 @@ typedef coroutine<std::string::iterator(void)> match_coroutine_type;  *****************************************************************************/  /// Simulate an event API whose response is immediate: sent on receipt of the  /// initial request, rather than after some delay. This is the case that -/// distinguishes postAndWait() from calling post(), then calling -/// waitForEventOn(). +/// distinguishes postEventAndSuspend() from calling post(), then calling +/// suspendUntilEventOn().  class ImmediateAPI  {  public: @@ -241,13 +241,13 @@ namespace tut              // declare the future              boost::dcoroutines::future<LLSD> future(self); -            // tell the future what to wait for +            // tell the future what to suspend for              LLTempBoundListener connection(                  LLEventPumps::instance().obtain("source").listen("coro", voidlistener(boost::dcoroutines::make_callback(future))));              ensure("Not yet", ! future);              // attempting to dereference ("resolve") the future causes the calling -            // coroutine to wait for it -            debug("about to wait"); +            // coroutine to suspend for it +            debug("about to suspend");              result = *future;              ensure("Got it", future);          } @@ -269,9 +269,9 @@ namespace tut          coro(std::nothrow);          // When the coroutine waits for the event pump, it returns here.          debug("about to send"); -        // Satisfy the wait. +        // Satisfy the suspend.          LLEventPumps::instance().obtain("source").post("received"); -        // Now wait for the coroutine to complete. +        // Now suspend for the coroutine to complete.          ensure("coroutine complete", ! coro);          // ensure the coroutine ran and woke up again with the intended result          ensure_equals(result.asString(), "received"); @@ -281,7 +281,7 @@ namespace tut      {          BEGIN          { -            result = waitForEventOn("source"); +            result = suspendUntilEventOn("source");          }          END      } @@ -303,7 +303,7 @@ namespace tut      {          BEGIN          { -            LLEventWithID pair = waitForEventOn("reply", "error"); +            LLEventWithID pair = suspendUntilEventOn("reply", "error");              result = pair.first;              which  = pair.second;              debug(STRINGIZE("result = " << result << ", which = " << which)); @@ -347,7 +347,7 @@ namespace tut          {              LLCoroEventPump waiter;              replyName = waiter.getName(); -            result = waiter.wait(); +            result = waiter.suspend();          }          END      } @@ -372,7 +372,7 @@ namespace tut              LLCoroEventPumps waiter;              replyName = waiter.getName0();              errorName = waiter.getName1(); -            LLEventWithID pair(waiter.wait()); +            LLEventWithID pair(waiter.suspend());              result = pair.first;              which  = pair.second;          } @@ -414,7 +414,7 @@ namespace tut              LLCoroEventPumps waiter;              replyName = waiter.getName0();              errorName = waiter.getName1(); -            result = waiter.waitWithException(); +            result = waiter.suspendWithException();          }          END      } @@ -441,7 +441,7 @@ namespace tut              errorName = waiter.getName1();              try              { -                result = waiter.waitWithException(); +                result = waiter.suspendWithException();                  debug("no exception");              }              catch (const LLErrorEvent& e) @@ -474,7 +474,7 @@ namespace tut              LLCoroEventPumps waiter;              replyName = waiter.getName0();              errorName = waiter.getName1(); -            result = waiter.waitWithLog(); +            result = waiter.suspendWithLog();          }          END      } @@ -502,7 +502,7 @@ namespace tut              WrapLLErrs capture;              try              { -                result = waiter.waitWithLog(); +                result = waiter.suspendWithLog();                  debug("no exception");              }              catch (const WrapLLErrs::FatalException& e) @@ -532,7 +532,7 @@ namespace tut      {          BEGIN          { -            result = postAndWait(LLSDMap("value", 17),       // request event +            result = postEventAndSuspend(LLSDMap("value", 17),       // request event                                   immediateAPI.getPump(),     // requestPump                                   "reply1",                   // replyPump                                   "reply");                   // request["reply"] = name @@ -554,7 +554,7 @@ namespace tut      {          BEGIN          { -            LLEventWithID pair = ::postAndWait2(LLSDMap("value", 18), +            LLEventWithID pair = ::postEventAndSuspend2(LLSDMap("value", 18),                                                  immediateAPI.getPump(),                                                  "reply2",                                                  "error2", @@ -582,7 +582,7 @@ namespace tut      {          BEGIN          { -            LLEventWithID pair = ::postAndWait2(LLSDMap("value", 18)("fail", LLSD()), +            LLEventWithID pair = ::postEventAndSuspend2(LLSDMap("value", 18)("fail", LLSD()),                                                  immediateAPI.getPump(),                                                  "reply2",                                                  "error2", @@ -611,7 +611,7 @@ namespace tut          BEGIN          {              LLCoroEventPump waiter; -            result = waiter.postAndWait(LLSDMap("value", 17), +            result = waiter.postAndSuspend(LLSDMap("value", 17),                                          immediateAPI.getPump(), "reply");          }          END @@ -632,7 +632,7 @@ namespace tut          BEGIN          {              LLCoroEventPumps waiter; -            LLEventWithID pair(waiter.postAndWait(LLSDMap("value", 23), +            LLEventWithID pair(waiter.postAndSuspend(LLSDMap("value", 23),                                                    immediateAPI.getPump(), "reply", "error"));              result = pair.first;              which  = pair.second; @@ -657,7 +657,7 @@ namespace tut          {              LLCoroEventPumps waiter;              LLEventWithID pair( -                waiter.postAndWait(LLSDMap("value", 23)("fail", LLSD()), +                waiter.postAndSuspend(LLSDMap("value", 23)("fail", LLSD()),                                     immediateAPI.getPump(), "reply", "error"));              result = pair.first;              which  = pair.second; @@ -681,7 +681,7 @@ namespace tut          BEGIN          {              LLCoroEventPumps waiter; -            result = waiter.postAndWaitWithException(LLSDMap("value", 8), +            result = waiter.postAndSuspendWithException(LLSDMap("value", 8),                                                       immediateAPI.getPump(), "reply", "error");          }          END @@ -704,7 +704,7 @@ namespace tut              LLCoroEventPumps waiter;              try              { -                result = waiter.postAndWaitWithException( +                result = waiter.postAndSuspendWithException(                      LLSDMap("value", 9)("fail", LLSD()),                      immediateAPI.getPump(), "reply", "error");                  debug("no exception"); @@ -734,7 +734,7 @@ namespace tut          BEGIN          {              LLCoroEventPumps waiter; -            result = waiter.postAndWaitWithLog(LLSDMap("value", 30), +            result = waiter.postAndSuspendWithLog(LLSDMap("value", 30),                                                 immediateAPI.getPump(), "reply", "error");          }          END @@ -758,7 +758,7 @@ namespace tut              WrapLLErrs capture;              try              { -                result = waiter.postAndWaitWithLog( +                result = waiter.postAndSuspendWithLog(                      LLSDMap("value", 31)("fail", LLSD()),                      immediateAPI.getPump(), "reply", "error");                  debug("no exception"); diff --git a/indra/llmessage/llavatarnamecache.cpp b/indra/llmessage/llavatarnamecache.cpp index d262862c80..61f18ed63e 100755 --- a/indra/llmessage/llavatarnamecache.cpp +++ b/indra/llmessage/llavatarnamecache.cpp @@ -195,7 +195,7 @@ void LLAvatarNameCache::requestAvatarNameCache_(std::string url, std::vector<LLU          bool success = true;          LLCoreHttpUtil::HttpCoroutineAdapter httpAdapter("NameCache", LLAvatarNameCache::sHttpPolicy); -        LLSD results = httpAdapter.getAndYield(sHttpRequest, url); +        LLSD results = httpAdapter.getAndSuspend(sHttpRequest, url);          LLSD httpResults;          LL_DEBUGS() << results << LL_ENDL; diff --git a/indra/llmessage/llcoproceduremanager.cpp b/indra/llmessage/llcoproceduremanager.cpp index 10519d990e..f0fe1ab01b 100644 --- a/indra/llmessage/llcoproceduremanager.cpp +++ b/indra/llmessage/llcoproceduremanager.cpp @@ -58,7 +58,7 @@ public:      LLUUID enqueueCoprocedure(const std::string &name, CoProcedure_t proc);      /// Cancel a coprocedure. If the coprocedure is already being actively executed  -    /// this method calls cancelYieldingOperation() on the associated HttpAdapter +    /// this method calls cancelSuspendedOperation() on the associated HttpAdapter      /// If it has not yet been dequeued it is simply removed from the queue.      bool cancelCoprocedure(const LLUUID &id); @@ -316,7 +316,7 @@ void LLCoprocedurePool::shutdown(bool hardShutdown)          }          if ((*it).second)          { -            (*it).second->cancelYieldingOperation(); +            (*it).second->cancelSuspendedOperation();          }      } @@ -345,7 +345,7 @@ bool LLCoprocedurePool::cancelCoprocedure(const LLUUID &id)      if (itActive != mActiveCoprocs.end())      {          LL_INFOS() << "Found and canceling active coprocedure with id=" << id.asString() << " in pool \"" << mPoolName << "\"" << LL_ENDL; -        (*itActive).second->cancelYieldingOperation(); +        (*itActive).second->cancelSuspendedOperation();          mActiveCoprocs.erase(itActive);          return true;      } @@ -371,7 +371,7 @@ void LLCoprocedurePool::coprocedureInvokerCoro(LLCoreHttpUtil::HttpCoroutineAdap      while (!mShutdown)      { -        llcoro::waitForEventOn(mWakeupTrigger); +        llcoro::suspendUntilEventOn(mWakeupTrigger);          if (mShutdown)              break; diff --git a/indra/llmessage/llcorehttputil.cpp b/indra/llmessage/llcorehttputil.cpp index 106df15bf1..d964ff7100 100644 --- a/indra/llmessage/llcorehttputil.cpp +++ b/indra/llmessage/llcorehttputil.cpp @@ -567,20 +567,20 @@ HttpCoroutineAdapter::HttpCoroutineAdapter(const std::string &name,  HttpCoroutineAdapter::~HttpCoroutineAdapter()  { -    cancelYieldingOperation(); +    cancelSuspendedOperation();  } -LLSD HttpCoroutineAdapter::postAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::postAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, const LLSD & body,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  {      LLEventStream  replyPump(mAdapterName, true);      HttpCoroHandler::ptr_t httpHandler(new HttpCoroLLSDHandler(replyPump)); -    return postAndYield_(request, url, body, options, headers, httpHandler); +    return postAndSuspend_(request, url, body, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::postAndYield_(LLCore::HttpRequest::ptr_t &request, +LLSD HttpCoroutineAdapter::postAndSuspend_(LLCore::HttpRequest::ptr_t &request,      const std::string & url, const LLSD & body,      LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,      HttpCoroHandler::ptr_t &handler) @@ -601,35 +601,35 @@ LLSD HttpCoroutineAdapter::postAndYield_(LLCore::HttpRequest::ptr_t &request,      }      saveState(hhandle, request, handler); -    LLSD results = llcoro::waitForEventOn(handler->getReplyPump()); +    LLSD results = llcoro::suspendUntilEventOn(handler->getReplyPump());      cleanState();      return results;  } -LLSD HttpCoroutineAdapter::postAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::postAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, LLCore::BufferArray::ptr_t rawbody,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  {      LLEventStream  replyPump(mAdapterName, true);      HttpCoroHandler::ptr_t httpHandler(new HttpCoroLLSDHandler(replyPump)); -    return postAndYield_(request, url, rawbody, options, headers, httpHandler); +    return postAndSuspend_(request, url, rawbody, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::postRawAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::postRawAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, LLCore::BufferArray::ptr_t rawbody,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  {      LLEventStream  replyPump(mAdapterName, true);      HttpCoroHandler::ptr_t httpHandler(new HttpCoroRawHandler(replyPump)); -    return postAndYield_(request, url, rawbody, options, headers, httpHandler); +    return postAndSuspend_(request, url, rawbody, options, headers, httpHandler);  }  // *TODO: This functionality could be moved into the LLCore::Http library itself   // by having the CURL layer read the file directly. -LLSD HttpCoroutineAdapter::postFileAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::postFileAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, std::string fileName,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  { @@ -653,12 +653,12 @@ LLSD HttpCoroutineAdapter::postFileAndYield(LLCore::HttpRequest::ptr_t request,          }      } -    return postAndYield(request, url, fileData, options, headers); +    return postAndSuspend(request, url, fileData, options, headers);  }  // *TODO: This functionality could be moved into the LLCore::Http library itself   // by having the CURL layer read the file directly. -LLSD HttpCoroutineAdapter::postFileAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::postFileAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, LLUUID assetId, LLAssetType::EType assetType,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  { @@ -678,10 +678,10 @@ LLSD HttpCoroutineAdapter::postFileAndYield(LLCore::HttpRequest::ptr_t request,          delete[] fileBuffer;      } -    return postAndYield(request, url, fileData, options, headers); +    return postAndSuspend(request, url, fileData, options, headers);  } -LLSD HttpCoroutineAdapter::postJsonAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::postJsonAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, const LLSD & body,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  { @@ -700,11 +700,11 @@ LLSD HttpCoroutineAdapter::postJsonAndYield(LLCore::HttpRequest::ptr_t request,          outs << writer.write(root);      } -    return postAndYield_(request, url, rawbody, options, headers, httpHandler); +    return postAndSuspend_(request, url, rawbody, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::postAndYield_(LLCore::HttpRequest::ptr_t &request, +LLSD HttpCoroutineAdapter::postAndSuspend_(LLCore::HttpRequest::ptr_t &request,      const std::string & url, LLCore::BufferArray::ptr_t &rawbody,      LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,      HttpCoroHandler::ptr_t &handler) @@ -724,23 +724,23 @@ LLSD HttpCoroutineAdapter::postAndYield_(LLCore::HttpRequest::ptr_t &request,      }      saveState(hhandle, request, handler); -    LLSD results = llcoro::waitForEventOn(handler->getReplyPump()); +    LLSD results = llcoro::suspendUntilEventOn(handler->getReplyPump());      cleanState();      return results;  } -LLSD HttpCoroutineAdapter::putAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::putAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, const LLSD & body,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  {      LLEventStream  replyPump(mAdapterName + "Reply", true);      HttpCoroHandler::ptr_t httpHandler(new HttpCoroLLSDHandler(replyPump)); -    return putAndYield_(request, url, body, options, headers, httpHandler); +    return putAndSuspend_(request, url, body, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::putJsonAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::putJsonAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, const LLSD & body,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  { @@ -758,10 +758,10 @@ LLSD HttpCoroutineAdapter::putJsonAndYield(LLCore::HttpRequest::ptr_t request,          outs << writer.write(root);      } -    return putAndYield_(request, url, rawbody, options, headers, httpHandler); +    return putAndSuspend_(request, url, rawbody, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::putAndYield_(LLCore::HttpRequest::ptr_t &request, +LLSD HttpCoroutineAdapter::putAndSuspend_(LLCore::HttpRequest::ptr_t &request,      const std::string & url, const LLSD & body,      LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,      HttpCoroHandler::ptr_t &handler) @@ -782,13 +782,13 @@ LLSD HttpCoroutineAdapter::putAndYield_(LLCore::HttpRequest::ptr_t &request,      }      saveState(hhandle, request, handler); -    LLSD results = llcoro::waitForEventOn(handler->getReplyPump()); +    LLSD results = llcoro::suspendUntilEventOn(handler->getReplyPump());      cleanState();      return results;  } -LLSD HttpCoroutineAdapter::putAndYield_(LLCore::HttpRequest::ptr_t &request, +LLSD HttpCoroutineAdapter::putAndSuspend_(LLCore::HttpRequest::ptr_t &request,      const std::string & url, const LLCore::BufferArray::ptr_t & rawbody,      LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,      HttpCoroHandler::ptr_t &handler) @@ -808,44 +808,44 @@ LLSD HttpCoroutineAdapter::putAndYield_(LLCore::HttpRequest::ptr_t &request,      }      saveState(hhandle, request, handler); -    LLSD results = llcoro::waitForEventOn(handler->getReplyPump()); +    LLSD results = llcoro::suspendUntilEventOn(handler->getReplyPump());      cleanState();      return results;  } -LLSD HttpCoroutineAdapter::getAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::getAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  {      LLEventStream  replyPump(mAdapterName + "Reply", true);      HttpCoroHandler::ptr_t httpHandler(new HttpCoroLLSDHandler(replyPump)); -    return getAndYield_(request, url, options, headers, httpHandler); +    return getAndSuspend_(request, url, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::getRawAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::getRawAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  {      LLEventStream  replyPump(mAdapterName + "Reply", true);      HttpCoroHandler::ptr_t httpHandler(new HttpCoroRawHandler(replyPump)); -    return getAndYield_(request, url, options, headers, httpHandler); +    return getAndSuspend_(request, url, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::getJsonAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::getJsonAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  {      LLEventStream  replyPump(mAdapterName + "Reply", true);      HttpCoroHandler::ptr_t httpHandler(new HttpCoroJSONHandler(replyPump)); -    return getAndYield_(request, url, options, headers, httpHandler); +    return getAndSuspend_(request, url, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::getAndYield_(LLCore::HttpRequest::ptr_t &request, +LLSD HttpCoroutineAdapter::getAndSuspend_(LLCore::HttpRequest::ptr_t &request,      const std::string & url,      LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,       HttpCoroHandler::ptr_t &handler) @@ -864,35 +864,35 @@ LLSD HttpCoroutineAdapter::getAndYield_(LLCore::HttpRequest::ptr_t &request,      }      saveState(hhandle, request, handler); -    LLSD results = llcoro::waitForEventOn(handler->getReplyPump()); +    LLSD results = llcoro::suspendUntilEventOn(handler->getReplyPump());      cleanState();      return results;  } -LLSD HttpCoroutineAdapter::deleteAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::deleteAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  {      LLEventStream  replyPump(mAdapterName + "Reply", true);      HttpCoroHandler::ptr_t httpHandler(new HttpCoroLLSDHandler(replyPump)); -    return deleteAndYield_(request, url, options, headers, httpHandler); +    return deleteAndSuspend_(request, url, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::deleteJsonAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::deleteJsonAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url,       LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  {      LLEventStream  replyPump(mAdapterName + "Reply", true);      HttpCoroHandler::ptr_t httpHandler(new HttpCoroJSONHandler(replyPump)); -    return deleteAndYield_(request, url, options, headers, httpHandler); +    return deleteAndSuspend_(request, url, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::deleteAndYield_(LLCore::HttpRequest::ptr_t &request, +LLSD HttpCoroutineAdapter::deleteAndSuspend_(LLCore::HttpRequest::ptr_t &request,      const std::string & url, LLCore::HttpOptions::ptr_t &options,       LLCore::HttpHeaders::ptr_t &headers, HttpCoroHandler::ptr_t &handler)  { @@ -910,24 +910,24 @@ LLSD HttpCoroutineAdapter::deleteAndYield_(LLCore::HttpRequest::ptr_t &request,      }      saveState(hhandle, request, handler); -    LLSD results = llcoro::waitForEventOn(handler->getReplyPump()); +    LLSD results = llcoro::suspendUntilEventOn(handler->getReplyPump());      cleanState();      return results;  } -LLSD HttpCoroutineAdapter::patchAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::patchAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, const LLSD & body,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  {      LLEventStream  replyPump(mAdapterName + "Reply", true);      HttpCoroHandler::ptr_t httpHandler(new HttpCoroLLSDHandler(replyPump)); -    return patchAndYield_(request, url, body, options, headers, httpHandler); +    return patchAndSuspend_(request, url, body, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::patchAndYield_(LLCore::HttpRequest::ptr_t &request, +LLSD HttpCoroutineAdapter::patchAndSuspend_(LLCore::HttpRequest::ptr_t &request,      const std::string & url, const LLSD & body,      LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,      HttpCoroHandler::ptr_t &handler) @@ -948,13 +948,13 @@ LLSD HttpCoroutineAdapter::patchAndYield_(LLCore::HttpRequest::ptr_t &request,      }      saveState(hhandle, request, handler); -    LLSD results = llcoro::waitForEventOn(handler->getReplyPump()); +    LLSD results = llcoro::suspendUntilEventOn(handler->getReplyPump());      cleanState();      return results;  } -LLSD HttpCoroutineAdapter::copyAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::copyAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, const std::string dest,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  { @@ -965,11 +965,11 @@ LLSD HttpCoroutineAdapter::copyAndYield(LLCore::HttpRequest::ptr_t request,          headers.reset(new LLCore::HttpHeaders);      headers->append(HTTP_OUT_HEADER_DESTINATION, dest); -    return copyAndYield_(request, url, options, headers, httpHandler); +    return copyAndSuspend_(request, url, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::copyAndYield_(LLCore::HttpRequest::ptr_t &request, +LLSD HttpCoroutineAdapter::copyAndSuspend_(LLCore::HttpRequest::ptr_t &request,      const std::string & url,       LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,      HttpCoroHandler::ptr_t &handler) @@ -990,13 +990,13 @@ LLSD HttpCoroutineAdapter::copyAndYield_(LLCore::HttpRequest::ptr_t &request,      }      saveState(hhandle, request, handler); -    LLSD results = llcoro::waitForEventOn(handler->getReplyPump()); +    LLSD results = llcoro::suspendUntilEventOn(handler->getReplyPump());      cleanState();      return results;  } -LLSD HttpCoroutineAdapter::moveAndYield(LLCore::HttpRequest::ptr_t request, +LLSD HttpCoroutineAdapter::moveAndSuspend(LLCore::HttpRequest::ptr_t request,      const std::string & url, const std::string dest,      LLCore::HttpOptions::ptr_t options, LLCore::HttpHeaders::ptr_t headers)  { @@ -1007,11 +1007,11 @@ LLSD HttpCoroutineAdapter::moveAndYield(LLCore::HttpRequest::ptr_t request,          headers.reset(new LLCore::HttpHeaders);      headers->append(HTTP_OUT_HEADER_DESTINATION, dest); -    return moveAndYield_(request, url, options, headers, httpHandler); +    return moveAndSuspend_(request, url, options, headers, httpHandler);  } -LLSD HttpCoroutineAdapter::moveAndYield_(LLCore::HttpRequest::ptr_t &request, +LLSD HttpCoroutineAdapter::moveAndSuspend_(LLCore::HttpRequest::ptr_t &request,      const std::string & url,      LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,      HttpCoroHandler::ptr_t &handler) @@ -1032,7 +1032,7 @@ LLSD HttpCoroutineAdapter::moveAndYield_(LLCore::HttpRequest::ptr_t &request,      }      saveState(hhandle, request, handler); -    LLSD results = llcoro::waitForEventOn(handler->getReplyPump()); +    LLSD results = llcoro::suspendUntilEventOn(handler->getReplyPump());      cleanState();      return results; @@ -1059,7 +1059,7 @@ void HttpCoroutineAdapter::checkDefaultHeaders(LLCore::HttpHeaders::ptr_t &heade  } -void HttpCoroutineAdapter::cancelYieldingOperation() +void HttpCoroutineAdapter::cancelSuspendedOperation()  {      LLCore::HttpRequest::ptr_t request = mWeakRequest.lock();      HttpCoroHandler::ptr_t handler = mWeakHandler.lock(); @@ -1144,7 +1144,7 @@ void HttpCoroutineAdapter::trivialGetCoro(std::string url, LLCore::HttpRequest::      LL_INFOS("HttpCoroutineAdapter", "genericGetCoro") << "Generic GET for " << url << LL_ENDL; -    LLSD result = httpAdapter->getAndYield(httpRequest, url, httpOpts); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url, httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -1195,7 +1195,7 @@ void HttpCoroutineAdapter::trivialPostCoro(std::string url, LLCore::HttpRequest:      LL_INFOS("HttpCoroutineAdapter", "genericPostCoro") << "Generic POST for " << url << LL_ENDL; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData, httpOpts); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData, httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/llmessage/llcorehttputil.h b/indra/llmessage/llcorehttputil.h index 94800b1a5b..9328427c34 100644 --- a/indra/llmessage/llcorehttputil.h +++ b/indra/llmessage/llcorehttputil.h @@ -330,80 +330,80 @@ public:      ///       /// @Note: the request's smart pointer is passed by value so that it will      /// not be deallocated during the yield. -    LLSD postAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD postAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, const LLSD & body,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD postAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD postAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, LLCore::BufferArray::ptr_t rawbody,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD postAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD postAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, const LLSD & body,          LLCore::HttpHeaders::ptr_t &headers)      { -        return postAndYield(request, url, body, +        return postAndSuspend(request, url, body,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      } -    LLSD postAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD postAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, LLCore::BufferArray::ptr_t &rawbody,          LLCore::HttpHeaders::ptr_t &headers)      { -        return postAndYield(request, url, rawbody, +        return postAndSuspend(request, url, rawbody,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      } -    LLSD postRawAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD postRawAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, LLCore::BufferArray::ptr_t rawbody,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD postRawAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD postRawAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, LLCore::BufferArray::ptr_t &rawbody,          LLCore::HttpHeaders::ptr_t &headers)      { -        return postRawAndYield(request, url, rawbody, +        return postRawAndSuspend(request, url, rawbody,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      } -    LLSD postFileAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD postFileAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, std::string fileName,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD postFileAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD postFileAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, std::string fileName,          LLCore::HttpHeaders::ptr_t &headers)      { -        return postFileAndYield(request, url, fileName, +        return postFileAndSuspend(request, url, fileName,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      } -    LLSD postFileAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD postFileAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, LLUUID assetId, LLAssetType::EType assetType,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD postFileAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD postFileAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, LLUUID assetId, LLAssetType::EType assetType,          LLCore::HttpHeaders::ptr_t &headers)      { -        return postFileAndYield(request, url, assetId, assetType, +        return postFileAndSuspend(request, url, assetId, assetType,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      } -    LLSD postJsonAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD postJsonAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, const LLSD & body,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD postJsonAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD postJsonAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, const LLSD & body,          LLCore::HttpHeaders::ptr_t &headers)      { -        return postJsonAndYield(request, url, body, +        return postJsonAndSuspend(request, url, body,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      } @@ -414,28 +414,28 @@ public:      ///       /// @Note: the request's smart pointer is passed by value so that it will      /// not be deallocated during the yield. -    LLSD putAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD putAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, const LLSD & body,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD putAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD putAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, const LLSD & body,          LLCore::HttpHeaders::ptr_t headers)      { -        return putAndYield(request, url, body, +        return putAndSuspend(request, url, body,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      } -    LLSD putJsonAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD putJsonAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, const LLSD & body,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD putJsonAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD putJsonAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, const LLSD & body,          LLCore::HttpHeaders::ptr_t &headers)      { -        return putJsonAndYield(request, url, body, +        return putJsonAndSuspend(request, url, body,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      } @@ -445,42 +445,42 @@ public:      /// @Note: the request's smart pointer is passed by value so that it will      /// not be deallocated during the yield.      ///  -    LLSD getAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD getAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD getAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD getAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, LLCore::HttpHeaders::ptr_t &headers)      { -        return getAndYield(request, url, +        return getAndSuspend(request, url,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),              headers);      } -    LLSD getRawAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD getRawAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD getRawAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD getRawAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, LLCore::HttpHeaders::ptr_t &headers)      { -        return getRawAndYield(request, url, +        return getRawAndSuspend(request, url,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),              headers);      } -    /// These methods have the same behavior as @getAndYield() however they are  +    /// These methods have the same behavior as @getAndSuspend() however they are       /// expecting the server to return the results formatted in a JSON string.       /// On a successful GET call the JSON results will be converted into LLSD       /// before being returned to the caller. -    LLSD getJsonAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD getJsonAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD getJsonAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD getJsonAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, LLCore::HttpHeaders::ptr_t &headers)      { -        return getJsonAndYield(request, url, +        return getJsonAndSuspend(request, url,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),              headers);      } @@ -491,30 +491,30 @@ public:      ///       /// @Note: the request's smart pointer is passed by value so that it will      /// not be deallocated during the yield. -    LLSD deleteAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD deleteAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD deleteAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD deleteAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, LLCore::HttpHeaders::ptr_t headers)      { -        return deleteAndYield(request, url, +        return deleteAndSuspend(request, url,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),              headers);      } -    /// These methods have the same behavior as @deleteAndYield() however they are  +    /// These methods have the same behavior as @deleteAndSuspend() however they are       /// expecting the server to return any results formatted in a JSON string.       /// On a successful DELETE call the JSON results will be converted into LLSD       /// before being returned to the caller. -    LLSD deleteJsonAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD deleteJsonAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD deleteJsonAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD deleteJsonAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, LLCore::HttpHeaders::ptr_t headers)      { -        return deleteJsonAndYield(request, url, +        return deleteJsonAndSuspend(request, url,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),              headers);      } @@ -525,15 +525,15 @@ public:      ///       /// @Note: the request's smart pointer is passed by value so that it will      /// not be deallocated during the yield. -    LLSD patchAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD patchAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, const LLSD & body,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD patchAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD patchAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, const LLSD & body,          LLCore::HttpHeaders::ptr_t &headers)      { -        return patchAndYield(request, url, body, +        return patchAndSuspend(request, url, body,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      } @@ -545,15 +545,15 @@ public:      ///       /// @Note: the request's smart pointer is passed by value so that it will      /// not be deallocated during the yield. -    LLSD copyAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD copyAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, const std::string dest,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD copyAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD copyAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, const std::string & dest,          LLCore::HttpHeaders::ptr_t &headers)      { -        return copyAndYield(request, url, dest, +        return copyAndSuspend(request, url, dest,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      } @@ -565,20 +565,20 @@ public:      ///       /// @Note: the request's smart pointer is passed by value so that it will      /// not be deallocated during the yield. -    LLSD moveAndYield(LLCore::HttpRequest::ptr_t request, +    LLSD moveAndSuspend(LLCore::HttpRequest::ptr_t request,          const std::string & url, const std::string dest,          LLCore::HttpOptions::ptr_t options = LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()),          LLCore::HttpHeaders::ptr_t headers = LLCore::HttpHeaders::ptr_t(new LLCore::HttpHeaders())); -    LLSD moveAndYield(LLCore::HttpRequest::ptr_t &request, +    LLSD moveAndSuspend(LLCore::HttpRequest::ptr_t &request,          const std::string & url, const std::string & dest,          LLCore::HttpHeaders::ptr_t &headers)      { -        return moveAndYield(request, url, dest, +        return moveAndSuspend(request, url, dest,              LLCore::HttpOptions::ptr_t(new LLCore::HttpOptions()), headers);      }      /// -    void cancelYieldingOperation(); +    void cancelSuspendedOperation();      static LLCore::HttpStatus getStatusFromLLSD(const LLSD &httpResults); @@ -616,45 +616,45 @@ private:              HttpCoroHandler::ptr_t &handler);      void cleanState(); -    LLSD postAndYield_(LLCore::HttpRequest::ptr_t &request, +    LLSD postAndSuspend_(LLCore::HttpRequest::ptr_t &request,          const std::string & url, const LLSD & body,          LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,          HttpCoroHandler::ptr_t &handler); -    LLSD postAndYield_(LLCore::HttpRequest::ptr_t &request, +    LLSD postAndSuspend_(LLCore::HttpRequest::ptr_t &request,          const std::string & url, LLCore::BufferArray::ptr_t &rawbody,          LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,          HttpCoroHandler::ptr_t &handler); -    LLSD putAndYield_(LLCore::HttpRequest::ptr_t &request, +    LLSD putAndSuspend_(LLCore::HttpRequest::ptr_t &request,          const std::string & url, const LLSD & body,          LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,          HttpCoroHandler::ptr_t &handler); -    LLSD putAndYield_(LLCore::HttpRequest::ptr_t &request, +    LLSD putAndSuspend_(LLCore::HttpRequest::ptr_t &request,          const std::string & url, const LLCore::BufferArray::ptr_t & rawbody,          LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,          HttpCoroHandler::ptr_t &handler); -    LLSD getAndYield_(LLCore::HttpRequest::ptr_t &request, +    LLSD getAndSuspend_(LLCore::HttpRequest::ptr_t &request,          const std::string & url, LLCore::HttpOptions::ptr_t &options,           LLCore::HttpHeaders::ptr_t &headers, HttpCoroHandler::ptr_t &handler); -    LLSD deleteAndYield_(LLCore::HttpRequest::ptr_t &request, +    LLSD deleteAndSuspend_(LLCore::HttpRequest::ptr_t &request,          const std::string & url, LLCore::HttpOptions::ptr_t &options,          LLCore::HttpHeaders::ptr_t &headers, HttpCoroHandler::ptr_t &handler); -    LLSD patchAndYield_(LLCore::HttpRequest::ptr_t &request, +    LLSD patchAndSuspend_(LLCore::HttpRequest::ptr_t &request,          const std::string & url, const LLSD & body,          LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,          HttpCoroHandler::ptr_t &handler); -    LLSD copyAndYield_(LLCore::HttpRequest::ptr_t &request, +    LLSD copyAndSuspend_(LLCore::HttpRequest::ptr_t &request,          const std::string & url,           LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,          HttpCoroHandler::ptr_t &handler); -    LLSD moveAndYield_(LLCore::HttpRequest::ptr_t &request, +    LLSD moveAndSuspend_(LLCore::HttpRequest::ptr_t &request,          const std::string & url,          LLCore::HttpOptions::ptr_t &options, LLCore::HttpHeaders::ptr_t &headers,          HttpCoroHandler::ptr_t &handler); diff --git a/indra/llmessage/llexperiencecache.cpp b/indra/llmessage/llexperiencecache.cpp index ff5f7e793d..3265608582 100644 --- a/indra/llmessage/llexperiencecache.cpp +++ b/indra/llmessage/llexperiencecache.cpp @@ -248,7 +248,7 @@ void LLExperienceCache::requestExperiencesCoro(LLCoreHttpUtil::HttpCoroutineAdap      //LL_INFOS("requestExperiencesCoro") << "url: " << url << LL_ENDL; -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -401,7 +401,7 @@ void LLExperienceCache::idleCoro()      do       {          timeout.eventAfter(SECS_BETWEEN_REQUESTS, LLSD()); -        llcoro::waitForEventOn(timeout); +        llcoro::suspendUntilEventOn(timeout);          if (mEraseExpiredTimer.checkExpirationAndReset(ERASE_EXPIRED_TIMEOUT))          { @@ -564,7 +564,7 @@ void LLExperienceCache::fetchAssociatedExperienceCoro(LLCoreHttpUtil::HttpCorout      data["item-id"] = itemId;      data["fields"] = fields; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, data); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, data);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -612,7 +612,7 @@ void LLExperienceCache::findExperienceByNameCoro(LLCoreHttpUtil::HttpCoroutineAd      url << mCapability("FindExperienceByName")  << "?page=" << page << "&page_size=" << SEARCH_PAGE_SIZE << "&query=" << LLURI::escape(text); -    LLSD result = httpAdapter->getAndYield(httpRequest, url.str()); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url.str());      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -661,7 +661,7 @@ void LLExperienceCache::getGroupExperiencesCoro(LLCoreHttpUtil::HttpCoroutineAda      url += "?" + groupId.asString(); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -704,9 +704,9 @@ void LLExperienceCache::regionExperiencesCoro(LLCoreHttpUtil::HttpCoroutineAdapt      LLSD result;      if (update) -        result = httpAdapter->postAndYield(httpRequest, url, experiences); +        result = httpAdapter->postAndSuspend(httpRequest, url, experiences);      else -        result = httpAdapter->getAndYield(httpRequest, url); +        result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -740,7 +740,7 @@ void LLExperienceCache::getExperiencePermission(const LLUUID &experienceId, Expe          // _1 -> httpAdapter          // _2 -> httpRequest          // _3 -> url -        (&LLCoreHttpUtil::HttpCoroutineAdapter::getAndYield), _1, _2, _3, LLCore::HttpOptions::ptr_t(), LLCore::HttpHeaders::ptr_t())); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::getAndSuspend), _1, _2, _3, LLCore::HttpOptions::ptr_t(), LLCore::HttpHeaders::ptr_t()));      LLCoprocedureManager::getInstance()->enqueueCoprocedure("ExpCache", "Preferences Set", @@ -770,7 +770,7 @@ void LLExperienceCache::setExperiencePermission(const LLUUID &experienceId, cons          // _1 -> httpAdapter          // _2 -> httpRequest          // _3 -> url -        (&LLCoreHttpUtil::HttpCoroutineAdapter::putAndYield), _1, _2, _3, data, LLCore::HttpOptions::ptr_t(), LLCore::HttpHeaders::ptr_t())); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::putAndSuspend), _1, _2, _3, data, LLCore::HttpOptions::ptr_t(), LLCore::HttpHeaders::ptr_t()));      LLCoprocedureManager::getInstance()->enqueueCoprocedure("ExpCache", "Preferences Set", @@ -795,7 +795,7 @@ void LLExperienceCache::forgetExperiencePermission(const LLUUID &experienceId, E          // _1 -> httpAdapter          // _2 -> httpRequest          // _3 -> url -        (&LLCoreHttpUtil::HttpCoroutineAdapter::deleteAndYield), _1, _2, _3, LLCore::HttpOptions::ptr_t(), LLCore::HttpHeaders::ptr_t())); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::deleteAndSuspend), _1, _2, _3, LLCore::HttpOptions::ptr_t(), LLCore::HttpHeaders::ptr_t()));      LLCoprocedureManager::getInstance()->enqueueCoprocedure("ExpCache", "Preferences Set", @@ -845,7 +845,7 @@ void LLExperienceCache::getExperienceAdminCoro(LLCoreHttpUtil::HttpCoroutineAdap      }      url += "?experience_id=" + experienceId.asString(); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);  //     LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];  //     LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -880,7 +880,7 @@ void LLExperienceCache::updateExperienceCoro(LLCoreHttpUtil::HttpCoroutineAdapte      updateData.erase(LLExperienceCache::EXPIRES);      updateData.erase(LLExperienceCache::AGENT_ID); -    LLSD result = httpAdapter->postAndYield(httpRequest, url, updateData); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, updateData);      fn(result);  } diff --git a/indra/llmessage/message.cpp b/indra/llmessage/message.cpp index 4f9aa5d2de..2f4b47286d 100755 --- a/indra/llmessage/message.cpp +++ b/indra/llmessage/message.cpp @@ -4023,7 +4023,7 @@ void LLMessageSystem::sendUntrustedSimulatorMessageCoro(std::string url, std::st      postData["message"] = message;      postData["body"] = body; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData, httpOpts); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData, httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llaccountingcostmanager.cpp b/indra/newview/llaccountingcostmanager.cpp index cd9146ea16..d5027d13fa 100755 --- a/indra/newview/llaccountingcostmanager.cpp +++ b/indra/newview/llaccountingcostmanager.cpp @@ -101,7 +101,7 @@ void LLAccountingCostManager::accountingCostCoro(std::string url,          LLCoreHttpUtil::HttpCoroutineAdapter httpAdapter("AccountingCost", mHttpPolicy); -        LLSD results = httpAdapter.postAndYield(mHttpRequest, url, dataToPost); +        LLSD results = httpAdapter.postAndSuspend(mHttpRequest, url, dataToPost);          LLSD httpResults;          httpResults = results["http_result"]; diff --git a/indra/newview/llaisapi.cpp b/indra/newview/llaisapi.cpp index 2d877f6a47..5b7380a175 100755 --- a/indra/newview/llaisapi.cpp +++ b/indra/newview/llaisapi.cpp @@ -99,7 +99,7 @@ void AISAPI::CreateInventory(const LLUUID& parentId, const LLSD& newInventory, c      LL_DEBUGS("Inventory") << "url: " << url << LL_ENDL;      // I may be suffering from golden hammer here, but the first part of this bind  -    // is actually a static cast for &HttpCoroutineAdapter::postAndYield so that  +    // is actually a static cast for &HttpCoroutineAdapter::postAndSuspend so that       // the compiler can identify the correct signature to select.      //       // Reads as follows: @@ -117,7 +117,7 @@ void AISAPI::CreateInventory(const LLUUID& parentId, const LLSD& newInventory, c          // _4 -> body           // _5 -> httpOptions          // _6 -> httpHeaders -        (&LLCoreHttpUtil::HttpCoroutineAdapter::postAndYield), _1, _2, _3, _4, _5, _6); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::postAndSuspend), _1, _2, _3, _4, _5, _6);      LLCoprocedureManager::CoProcedure_t proc(boost::bind(&AISAPI::InvokeAISCommandCoro,          _1, postFn, url, parentId, newInventory, callback, COPYINVENTORY)); @@ -150,7 +150,7 @@ void AISAPI::SlamFolder(const LLUUID& folderId, const LLSD& newInventory, comple          // _4 -> body           // _5 -> httpOptions          // _6 -> httpHeaders -        (&LLCoreHttpUtil::HttpCoroutineAdapter::putAndYield), _1, _2, _3, _4, _5, _6); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::putAndSuspend), _1, _2, _3, _4, _5, _6);      LLCoprocedureManager::CoProcedure_t proc(boost::bind(&AISAPI::InvokeAISCommandCoro,          _1, putFn, url, folderId, newInventory, callback, SLAMFOLDER)); @@ -182,7 +182,7 @@ void AISAPI::RemoveCategory(const LLUUID &categoryId, completion_t callback)          // _4 -> body           // _5 -> httpOptions          // _6 -> httpHeaders -        (&LLCoreHttpUtil::HttpCoroutineAdapter::deleteAndYield), _1, _2, _3, _5, _6); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::deleteAndSuspend), _1, _2, _3, _5, _6);      LLCoprocedureManager::CoProcedure_t proc(boost::bind(&AISAPI::InvokeAISCommandCoro,          _1, delFn, url, categoryId, LLSD(), callback, REMOVECATEGORY)); @@ -215,7 +215,7 @@ void AISAPI::RemoveItem(const LLUUID &itemId, completion_t callback)          // _4 -> body           // _5 -> httpOptions          // _6 -> httpHeaders -        (&LLCoreHttpUtil::HttpCoroutineAdapter::deleteAndYield), _1, _2, _3, _5, _6); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::deleteAndSuspend), _1, _2, _3, _5, _6);      LLCoprocedureManager::CoProcedure_t proc(boost::bind(&AISAPI::InvokeAISCommandCoro,          _1, delFn, url, itemId, LLSD(), callback, REMOVEITEM)); @@ -258,7 +258,7 @@ void AISAPI::CopyLibraryCategory(const LLUUID& sourceId, const LLUUID& destId, b          // _4 -> body           // _5 -> httpOptions          // _6 -> httpHeaders -        (&LLCoreHttpUtil::HttpCoroutineAdapter::copyAndYield), _1, _2, _3, destination, _5, _6); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::copyAndSuspend), _1, _2, _3, destination, _5, _6);      LLCoprocedureManager::CoProcedure_t proc(boost::bind(&AISAPI::InvokeAISCommandCoro,          _1, copyFn, url, destId, LLSD(), callback, COPYLIBRARYCATEGORY)); @@ -291,7 +291,7 @@ void AISAPI::PurgeDescendents(const LLUUID &categoryId, completion_t callback)          // _4 -> body           // _5 -> httpOptions          // _6 -> httpHeaders -        (&LLCoreHttpUtil::HttpCoroutineAdapter::deleteAndYield), _1, _2, _3, _5, _6); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::deleteAndSuspend), _1, _2, _3, _5, _6);      LLCoprocedureManager::CoProcedure_t proc(boost::bind(&AISAPI::InvokeAISCommandCoro,          _1, delFn, url, categoryId, LLSD(), callback, PURGEDESCENDENTS)); @@ -323,7 +323,7 @@ void AISAPI::UpdateCategory(const LLUUID &categoryId, const LLSD &updates, compl          // _4 -> body           // _5 -> httpOptions          // _6 -> httpHeaders -        (&LLCoreHttpUtil::HttpCoroutineAdapter::patchAndYield), _1, _2, _3, _4, _5, _6); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::patchAndSuspend), _1, _2, _3, _4, _5, _6);      LLCoprocedureManager::CoProcedure_t proc(boost::bind(&AISAPI::InvokeAISCommandCoro,          _1, patchFn, url, categoryId, updates, callback, UPDATECATEGORY)); @@ -355,7 +355,7 @@ void AISAPI::UpdateItem(const LLUUID &itemId, const LLSD &updates, completion_t          // _4 -> body           // _5 -> httpOptions          // _6 -> httpHeaders -        (&LLCoreHttpUtil::HttpCoroutineAdapter::patchAndYield), _1, _2, _3, _4, _5, _6); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::patchAndSuspend), _1, _2, _3, _4, _5, _6);      LLCoprocedureManager::CoProcedure_t proc(boost::bind(&AISAPI::InvokeAISCommandCoro,          _1, patchFn, url, itemId, updates, callback, UPDATEITEM)); diff --git a/indra/newview/llavatarrenderinfoaccountant.cpp b/indra/newview/llavatarrenderinfoaccountant.cpp index e260142254..470f516db2 100644 --- a/indra/newview/llavatarrenderinfoaccountant.cpp +++ b/indra/newview/llavatarrenderinfoaccountant.cpp @@ -67,7 +67,7 @@ void LLAvatarRenderInfoAccountant::avatarRenderInfoGetCoro(std::string url, U64          httpAdapter(new LLCoreHttpUtil::HttpCoroutineAdapter("AvatarRenderInfoAccountant", httpPolicy));      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLViewerRegion * regionp = LLWorld::getInstance()->getRegionFromHandle(regionHandle);      if (!regionp) @@ -190,7 +190,7 @@ void LLAvatarRenderInfoAccountant::avatarRenderInfoReportCoro(std::string url, U      report[KEY_AGENTS] = agents;      regionp = NULL; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, report); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, report);      regionp = LLWorld::getInstance()->getRegionFromHandle(regionHandle);      if (!regionp) diff --git a/indra/newview/llestateinfomodel.cpp b/indra/newview/llestateinfomodel.cpp index 884d1579e6..8f2eb41307 100755 --- a/indra/newview/llestateinfomodel.cpp +++ b/indra/newview/llestateinfomodel.cpp @@ -153,7 +153,7 @@ void LLEstateInfoModel::commitEstateInfoCapsCoro(std::string url)          << ", sun_hour = " << getSunHour() << LL_ENDL;      LL_DEBUGS() << body << LL_ENDL; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, body); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, body);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/lleventpoll.cpp b/indra/newview/lleventpoll.cpp index 0aad1d5ba9..021d17251d 100755 --- a/indra/newview/lleventpoll.cpp +++ b/indra/newview/lleventpoll.cpp @@ -127,7 +127,7 @@ namespace Details          if (adapter)          {              // cancel the yielding operation if any. -            adapter->cancelYieldingOperation(); +            adapter->cancelSuspendedOperation();          }      } @@ -154,7 +154,7 @@ namespace Details  //              << LLSDXMLStreamer(request) << LL_ENDL;              LL_DEBUGS("LLEventPollImpl") << " <" << counter << "> posting and yielding." << LL_ENDL; -            LLSD result = httpAdapter->postAndYield(mHttpRequest, url, request); +            LLSD result = httpAdapter->postAndSuspend(mHttpRequest, url, request);  //          LL_DEBUGS("LLEventPollImpl::eventPollCoro") << "<" << counter << "> result = "  //              << LLSDXMLStreamer(result) << LL_ENDL; @@ -197,7 +197,7 @@ namespace Details                          " seconds, error count is now " << errorCount << LL_ENDL;                      timeout.eventAfter(waitToRetry, LLSD()); -                    llcoro::waitForEventOn(timeout); +                    llcoro::suspendUntilEventOn(timeout);                      if (mDone)                          break; diff --git a/indra/newview/llfacebookconnect.cpp b/indra/newview/llfacebookconnect.cpp index 7975902f73..1de4102dba 100755 --- a/indra/newview/llfacebookconnect.cpp +++ b/indra/newview/llfacebookconnect.cpp @@ -165,7 +165,7 @@ void LLFacebookConnect::facebookConnectCoro(std::string authCode, std::string au      httpOpts->setWantHeaders(true);      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->putAndYield(httpRequest, getFacebookConnectURL("/connection"), putData, httpOpts, get_headers()); +    LLSD result = httpAdapter->putAndSuspend(httpRequest, getFacebookConnectURL("/connection"), putData, httpOpts, get_headers());      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -240,7 +240,7 @@ void LLFacebookConnect::facebookShareCoro(std::string route, LLSD share)      httpOpts->setWantHeaders(true);      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->postAndYield(httpRequest, getFacebookConnectURL(route, true), share, httpOpts, get_headers()); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, getFacebookConnectURL(route, true), share, httpOpts, get_headers());      if (testShareStatus(result))      { @@ -307,7 +307,7 @@ void LLFacebookConnect::facebookShareImageCoro(std::string route, LLPointer<LLIm      setConnectionState(LLFacebookConnect::FB_POSTING); -    LLSD result = httpAdapter->postAndYield(httpRequest, getFacebookConnectURL(route, true), raw, httpOpts, httpHeaders); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, getFacebookConnectURL(route, true), raw, httpOpts, httpHeaders);      if (testShareStatus(result))      { @@ -329,7 +329,7 @@ void LLFacebookConnect::facebookDisconnectCoro()      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->deleteAndYield(httpRequest, getFacebookConnectURL("/connection"), httpOpts, get_headers()); +    LLSD result = httpAdapter->deleteAndSuspend(httpRequest, getFacebookConnectURL("/connection"), httpOpts, get_headers());      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -365,7 +365,7 @@ void LLFacebookConnect::facebookConnectedCheckCoro(bool autoConnect)      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->getAndYield(httpRequest, getFacebookConnectURL("/connection", true), httpOpts, get_headers()); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, getFacebookConnectURL("/connection", true), httpOpts, get_headers());      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -413,7 +413,7 @@ void LLFacebookConnect::facebookConnectInfoCoro()      httpOpts->setWantHeaders(true);      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->getAndYield(httpRequest, getFacebookConnectURL("/info", true), httpOpts, get_headers()); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, getFacebookConnectURL("/info", true), httpOpts, get_headers());      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -456,7 +456,7 @@ void LLFacebookConnect::facebookConnectFriendsCoro()      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->getAndYield(httpRequest, getFacebookConnectURL("/friends", true), httpOpts, get_headers()); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, getFacebookConnectURL("/friends", true), httpOpts, get_headers());      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llfeaturemanager.cpp b/indra/newview/llfeaturemanager.cpp index d2f8c68558..f08064d9b5 100755 --- a/indra/newview/llfeaturemanager.cpp +++ b/indra/newview/llfeaturemanager.cpp @@ -526,7 +526,7 @@ void LLFeatureManager::fetchFeatureTableCoro(std::string tableName)      LL_INFOS() << "LLFeatureManager fetching " << url << " into " << path << LL_ENDL; -    LLSD result = httpAdapter->getRawAndYield(httpRequest, url); +    LLSD result = httpAdapter->getRawAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llflickrconnect.cpp b/indra/newview/llflickrconnect.cpp index b18149a06c..c0ca5b8cf8 100644 --- a/indra/newview/llflickrconnect.cpp +++ b/indra/newview/llflickrconnect.cpp @@ -86,7 +86,7 @@ void LLFlickrConnect::flickrConnectCoro(std::string requestToken, std::string oa      setConnectionState(LLFlickrConnect::FLICKR_CONNECTION_IN_PROGRESS); -    LLSD result = httpAdapter->putAndYield(httpRequest, getFlickrConnectURL("/connection"), body, httpOpts); +    LLSD result = httpAdapter->putAndSuspend(httpRequest, getFlickrConnectURL("/connection"), body, httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -168,7 +168,7 @@ void LLFlickrConnect::flickrShareCoro(LLSD share)      httpOpts->setWantHeaders(true);      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->postAndYield(httpRequest, getFlickrConnectURL("/share/photo", true), share, httpOpts); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, getFlickrConnectURL("/share/photo", true), share, httpOpts);      if (testShareStatus(result))      { @@ -246,7 +246,7 @@ void LLFlickrConnect::flickrShareImageCoro(LLPointer<LLImageFormatted> image, st      body << "\r\n--" << boundary << "--\r\n"; -    LLSD result = httpAdapter->postAndYield(httpRequest, getFlickrConnectURL("/share/photo", true), raw, httpOpts, httpHeaders); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, getFlickrConnectURL("/share/photo", true), raw, httpOpts, httpHeaders);      if (testShareStatus(result))      { @@ -269,7 +269,7 @@ void LLFlickrConnect::flickrDisconnectCoro()      setConnectionState(LLFlickrConnect::FLICKR_DISCONNECTING);      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->deleteAndYield(httpRequest, getFlickrConnectURL("/connection"), httpOpts); +    LLSD result = httpAdapter->deleteAndSuspend(httpRequest, getFlickrConnectURL("/connection"), httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -304,7 +304,7 @@ void LLFlickrConnect::flickrConnectedCoro(bool autoConnect)      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->getAndYield(httpRequest, getFlickrConnectURL("/connection", true), httpOpts); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, getFlickrConnectURL("/connection", true), httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -353,7 +353,7 @@ void LLFlickrConnect::flickrInfoCoro()      httpOpts->setWantHeaders(true);      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->getAndYield(httpRequest, getFlickrConnectURL("/info", true), httpOpts); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, getFlickrConnectURL("/info", true), httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llfloateravatarpicker.cpp b/indra/newview/llfloateravatarpicker.cpp index 2824038f77..72892b47a4 100755 --- a/indra/newview/llfloateravatarpicker.cpp +++ b/indra/newview/llfloateravatarpicker.cpp @@ -466,7 +466,7 @@ void LLFloaterAvatarPicker::findCoro(std::string url, LLUUID queryID, std::strin      LL_INFOS("HttpCoroutineAdapter", "genericPostCoro") << "Generic POST for " << url << LL_ENDL; -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llfloaterexperiences.cpp b/indra/newview/llfloaterexperiences.cpp index bdab9ed868..fbe00beddd 100644 --- a/indra/newview/llfloaterexperiences.cpp +++ b/indra/newview/llfloaterexperiences.cpp @@ -293,7 +293,7 @@ void LLFloaterExperiences::retrieveExperienceList(const std::string &url,          // _3 -> url          // _4 -> httpOptions          // _5 -> httpHeaders -        (&LLCoreHttpUtil::HttpCoroutineAdapter::getAndYield), _1, _2, _3, _4, _5); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::getAndSuspend), _1, _2, _3, _4, _5);      LLCoros::instance().launch("LLFloaterExperiences::retrieveExperienceList",          boost::bind(&LLFloaterExperiences::retrieveExperienceListCoro, @@ -314,7 +314,7 @@ void LLFloaterExperiences::requestNewExperience(const std::string &url,          // _3 -> url          // _4 -> httpOptions          // _5 -> httpHeaders -        (&LLCoreHttpUtil::HttpCoroutineAdapter::postAndYield), _1, _2, _3, LLSD(), _4, _5); +        (&LLCoreHttpUtil::HttpCoroutineAdapter::postAndSuspend), _1, _2, _3, LLSD(), _4, _5);      LLCoros::instance().launch("LLFloaterExperiences::requestNewExperience",          boost::bind(&LLFloaterExperiences::retrieveExperienceListCoro, diff --git a/indra/newview/llfloatermodeluploadbase.cpp b/indra/newview/llfloatermodeluploadbase.cpp index e2f84fd990..0fe97fd610 100755 --- a/indra/newview/llfloatermodeluploadbase.cpp +++ b/indra/newview/llfloatermodeluploadbase.cpp @@ -70,7 +70,7 @@ void LLFloaterModelUploadBase::requestAgentUploadPermissionsCoro(std::string url      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llfloaterperms.cpp b/indra/newview/llfloaterperms.cpp index 16bb449fdb..31c2a6f9aa 100755 --- a/indra/newview/llfloaterperms.cpp +++ b/indra/newview/llfloaterperms.cpp @@ -215,7 +215,7 @@ void LLFloaterPermsDefault::updateCapCoro(std::string url)          LL_CONT << sent_perms_log.str() << LL_ENDL;      } -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llfloaterscriptlimits.cpp b/indra/newview/llfloaterscriptlimits.cpp index 14719a77f9..7b8fc5b35b 100755 --- a/indra/newview/llfloaterscriptlimits.cpp +++ b/indra/newview/llfloaterscriptlimits.cpp @@ -220,7 +220,7 @@ void LLPanelScriptLimitsRegionMemory::getLandScriptResourcesCoro(std::string url      postData["parcel_id"] = mParcelId; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -260,7 +260,7 @@ void LLPanelScriptLimitsRegionMemory::getLandScriptSummaryCoro(std::string url)          httpAdapter(new LLCoreHttpUtil::HttpCoroutineAdapter("getLandScriptSummaryCoro", httpPolicy));      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -312,7 +312,7 @@ void LLPanelScriptLimitsRegionMemory::getLandScriptDetailsCoro(std::string url)          httpAdapter(new LLCoreHttpUtil::HttpCoroutineAdapter("getLandScriptDetailsCoro", httpPolicy));      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -963,7 +963,7 @@ void LLPanelScriptLimitsAttachment::getAttachmentLimitsCoro(std::string url)          httpAdapter(new LLCoreHttpUtil::HttpCoroutineAdapter("getAttachmentLimitsCoro", httpPolicy));      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llfloatertos.cpp b/indra/newview/llfloatertos.cpp index 6dc08417d7..f6cfaf5522 100755 --- a/indra/newview/llfloatertos.cpp +++ b/indra/newview/llfloatertos.cpp @@ -214,7 +214,7 @@ void LLFloaterTOS::testSiteIsAliveCoro(std::string url)      LL_INFOS("HttpCoroutineAdapter", "genericPostCoro") << "Generic POST for " << url << LL_ENDL; -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llfloaterurlentry.cpp b/indra/newview/llfloaterurlentry.cpp index 6683a6e6e6..f2efef0c33 100755 --- a/indra/newview/llfloaterurlentry.cpp +++ b/indra/newview/llfloaterurlentry.cpp @@ -220,7 +220,7 @@ void LLFloaterURLEntry::getMediaTypeCoro(std::string url, LLHandle<LLFloater> pa      LL_INFOS("HttpCoroutineAdapter", "genericPostCoro") << "Generic POST for " << url << LL_ENDL; -    LLSD result = httpAdapter->getAndYield(httpRequest, url, httpOpts); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url, httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llgroupmgr.cpp b/indra/newview/llgroupmgr.cpp index b218f4f756..4559132aeb 100755 --- a/indra/newview/llgroupmgr.cpp +++ b/indra/newview/llgroupmgr.cpp @@ -1870,7 +1870,7 @@ void LLGroupMgr::getGroupBanRequestCoro(std::string url, LLUUID groupId)      std::string finalUrl = url + "?group_id=" + groupId.asString(); -    LLSD result = httpAdapter->getAndYield(httpRequest, finalUrl); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, finalUrl);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -1921,7 +1921,7 @@ void LLGroupMgr::postGroupBanRequestCoro(std::string url, LLUUID groupId,      LL_WARNS() << "post: " << ll_pretty_print_sd(postData) << LL_ENDL; -    LLSD result = httpAdapter->postAndYield(httpRequest, finalUrl, postData, httpOptions, httpHeaders); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, finalUrl, postData, httpOptions, httpHeaders);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -2041,7 +2041,7 @@ void LLGroupMgr::groupMembersRequestCoro(std::string url, LLUUID groupId)      LLSD postData = LLSD::emptyMap();      postData["group_id"] = groupId; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData, httpOpts); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData, httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp index 74f1cd0673..53b97a58c5 100755 --- a/indra/newview/llimview.cpp +++ b/indra/newview/llimview.cpp @@ -402,7 +402,7 @@ void startConfrenceCoro(std::string url,      postData["session-id"] = tempSessionId;      postData["params"] = agents; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -441,7 +441,7 @@ void chatterBoxInvitationCoro(std::string url, LLUUID sessionId, LLIMMgr::EInvit      postData["method"] = "accept invitation";      postData["session-id"] = sessionId; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index 175ea22aa0..53a58aff4c 100755 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -614,7 +614,7 @@ void LLInventoryModel::createNewCategoryCoro(std::string url, LLSD postData, inv      LL_INFOS("HttpCoroutineAdapter", "genericPostCoro") << "Generic POST for " << url << LL_ENDL; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData, httpOpts); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData, httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llmarketplacefunctions.cpp b/indra/newview/llmarketplacefunctions.cpp index b0cd1dd23e..e8e56ef0cd 100755 --- a/indra/newview/llmarketplacefunctions.cpp +++ b/indra/newview/llmarketplacefunctions.cpp @@ -191,7 +191,7 @@ namespace LLMarketplaceImport          httpHeaders->append(HTTP_OUT_HEADER_CONTENT_TYPE, HTTP_CONTENT_XML);          httpHeaders->append(HTTP_OUT_HEADER_USER_AGENT, LLViewerMedia::getCurrentUserAgent()); -        LLSD result = httpAdapter->postAndYield(httpRequest, url, LLSD(), httpOpts, httpHeaders); +        LLSD result = httpAdapter->postAndSuspend(httpRequest, url, LLSD(), httpOpts, httpHeaders);          LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];          LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -260,7 +260,7 @@ namespace LLMarketplaceImport              httpHeaders = LLViewerMedia::getHttpHeaders();          } -        LLSD result = httpAdapter->getAndYield(httpRequest, url, httpOpts, httpHeaders); +        LLSD result = httpAdapter->getAndSuspend(httpRequest, url, httpOpts, httpHeaders);          LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];          LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -755,7 +755,7 @@ void LLMarketplaceData::getMerchantStatusCoro()          LL_INFOS("Marketplace") << "No marketplace capability on Sim" << LL_ENDL;      } -    LLSD result = httpAdapter->getAndYield(httpRequest, url, httpOpts); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url, httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -820,7 +820,7 @@ void LLMarketplaceData::getSLMListingsCoro(LLUUID folderId)      std::string url = getSLMConnectURL("/listings"); -    LLSD result = httpAdapter->getJsonAndYield(httpRequest, url, httpHeaders); +    LLSD result = httpAdapter->getJsonAndSuspend(httpRequest, url, httpHeaders);      setUpdating(folderId, false); @@ -885,7 +885,7 @@ void LLMarketplaceData::getSingleListingCoro(S32 listingId, LLUUID folderId)      std::string url = getSLMConnectURL("/listing/") + llformat("%d", listingId); -    LLSD result = httpAdapter->getJsonAndYield(httpRequest, url, httpHeaders); +    LLSD result = httpAdapter->getJsonAndSuspend(httpRequest, url, httpHeaders);      setUpdating(folderId, false); @@ -967,7 +967,7 @@ void LLMarketplaceData::createSLMListingCoro(LLUUID folderId, LLUUID versionId,      std::string url = getSLMConnectURL("/listings"); -    LLSD result = httpAdapter->postJsonAndYield(httpRequest, url, postData, httpHeaders); +    LLSD result = httpAdapter->postJsonAndSuspend(httpRequest, url, postData, httpHeaders);      setUpdating(folderId, false); @@ -1034,7 +1034,7 @@ void LLMarketplaceData::updateSLMListingCoro(LLUUID folderId, S32 listingId, LLU      postData["listing"] = listing;      std::string url = getSLMConnectURL("/listing/") + llformat("%d", listingId); -    LLSD result = httpAdapter->putJsonAndYield(httpRequest, url, postData, httpHeaders); +    LLSD result = httpAdapter->putJsonAndSuspend(httpRequest, url, postData, httpHeaders);      setUpdating(folderId, false); @@ -1116,7 +1116,7 @@ void LLMarketplaceData::associateSLMListingCoro(LLUUID folderId, S32 listingId,      // Send request      std::string url = getSLMConnectURL("/associate_inventory/") + llformat("%d", listingId); -    LLSD result = httpAdapter->putJsonAndYield(httpRequest, url, postData, httpHeaders); +    LLSD result = httpAdapter->putJsonAndSuspend(httpRequest, url, postData, httpHeaders);      setUpdating(folderId, false);      setUpdating(sourceFolderId, false); @@ -1190,7 +1190,7 @@ void LLMarketplaceData::deleteSLMListingCoro(S32 listingId)      setUpdating(folderId, true); -    LLSD result = httpAdapter->deleteJsonAndYield(httpRequest, url, httpHeaders); +    LLSD result = httpAdapter->deleteJsonAndSuspend(httpRequest, url, httpHeaders);      setUpdating(folderId, false); diff --git a/indra/newview/llpathfindingmanager.cpp b/indra/newview/llpathfindingmanager.cpp index 2e6937a79f..711a869e82 100755 --- a/indra/newview/llpathfindingmanager.cpp +++ b/indra/newview/llpathfindingmanager.cpp @@ -464,7 +464,7 @@ void LLPathfindingManager::navMeshStatusRequestCoro(std::string url, U64 regionH      LLUUID regionUUID = region->getRegionID();      region = NULL; -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      region = LLWorld::getInstance()->getRegionFromHandle(regionHandle); @@ -519,7 +519,7 @@ void LLPathfindingManager::navMeshStatusRequestCoro(std::string url, U64 regionH      navMeshPtr->handleNavMeshStart(navMeshStatus);      LLSD postData; -    result = httpAdapter->postAndYield(httpRequest, navMeshURL, postData); +    result = httpAdapter->postAndSuspend(httpRequest, navMeshURL, postData);      U32 navMeshVersion = navMeshStatus.getVersion(); @@ -545,7 +545,7 @@ void LLPathfindingManager::navAgentStateRequestCoro(std::string url)          httpAdapter(new LLCoreHttpUtil::HttpCoroutineAdapter("NavAgentStateRequest", httpPolicy));      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -577,7 +577,7 @@ void LLPathfindingManager::navMeshRebakeCoro(std::string url, rebake_navmesh_cal      LLSD postData = LLSD::emptyMap();      postData["command"] = "rebuild"; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -606,11 +606,11 @@ void LLPathfindingManager::linksetObjectsCoro(std::string url, LinksetsResponder      if (putData.isUndefined())      { -        result = httpAdapter->getAndYield(httpRequest, url); +        result = httpAdapter->getAndSuspend(httpRequest, url);      }      else       { -        result = httpAdapter->putAndYield(httpRequest, url, putData); +        result = httpAdapter->putAndSuspend(httpRequest, url, putData);      }      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS]; @@ -642,11 +642,11 @@ void LLPathfindingManager::linksetTerrainCoro(std::string url, LinksetsResponder      if (putData.isUndefined())      { -        result = httpAdapter->getAndYield(httpRequest, url); +        result = httpAdapter->getAndSuspend(httpRequest, url);      }      else       { -        result = httpAdapter->putAndYield(httpRequest, url, putData); +        result = httpAdapter->putAndSuspend(httpRequest, url, putData);      }      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS]; @@ -673,7 +673,7 @@ void LLPathfindingManager::charactersCoro(std::string url, request_id_t requestI          httpAdapter(new LLCoreHttpUtil::HttpCoroutineAdapter("LinksetTerrain", httpPolicy));      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llproductinforequest.cpp b/indra/newview/llproductinforequest.cpp index 467e9df482..b663df4aae 100755 --- a/indra/newview/llproductinforequest.cpp +++ b/indra/newview/llproductinforequest.cpp @@ -73,7 +73,7 @@ void LLProductInfoRequestManager::getLandDescriptionsCoro(std::string url)          httpAdapter(new LLCoreHttpUtil::HttpCoroutineAdapter("genericPostCoro", httpPolicy));      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llremoteparcelrequest.cpp b/indra/newview/llremoteparcelrequest.cpp index 06bf90c7cb..055ccd5818 100755 --- a/indra/newview/llremoteparcelrequest.cpp +++ b/indra/newview/llremoteparcelrequest.cpp @@ -200,7 +200,7 @@ void LLRemoteParcelInfoProcessor::regionParcelInfoCoro(std::string url,          bodyData["region_handle"] = ll_sd_from_U64(regionHandle);      } -    LLSD result = httpAdapter->postAndYield(httpRequest, url, bodyData); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, bodyData);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llspeakers.cpp b/indra/newview/llspeakers.cpp index 3b060d8343..974029254f 100755 --- a/indra/newview/llspeakers.cpp +++ b/indra/newview/llspeakers.cpp @@ -881,7 +881,7 @@ void LLIMSpeakerMgr::moderationActionCoro(std::string url, LLSD action)      LLUUID sessionId = action["session-id"]; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, action, httpOpts); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, action, httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llsyntaxid.cpp b/indra/newview/llsyntaxid.cpp index 7f286044d6..9e54c521b5 100644 --- a/indra/newview/llsyntaxid.cpp +++ b/indra/newview/llsyntaxid.cpp @@ -129,7 +129,7 @@ void LLSyntaxIdLSL::fetchKeywordsFileCoro(std::string url, std::string fileSpec)          return;      } -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/lltranslate.cpp b/indra/newview/lltranslate.cpp index 5390573f7b..76fba82ef6 100755 --- a/indra/newview/lltranslate.cpp +++ b/indra/newview/lltranslate.cpp @@ -146,7 +146,7 @@ void LLTranslationAPIHandler::verifyKeyCoro(LLTranslate::EService service, std::          return;      } -    LLSD result = httpAdapter->getAndYield(httpRequest, url, httpOpts, httpHeaders); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url, httpOpts, httpHeaders);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -187,7 +187,7 @@ void LLTranslationAPIHandler::translateMessageCoro(LanguagePair_t fromTo, std::s          return;      } -    LLSD result = httpAdapter->getRawAndYield(httpRequest, url, httpOpts, httpHeaders); +    LLSD result = httpAdapter->getRawAndSuspend(httpRequest, url, httpOpts, httpHeaders);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/lltwitterconnect.cpp b/indra/newview/lltwitterconnect.cpp index 86a49cc189..9b7c13b57d 100644 --- a/indra/newview/lltwitterconnect.cpp +++ b/indra/newview/lltwitterconnect.cpp @@ -84,7 +84,7 @@ void LLTwitterConnect::twitterConnectCoro(std::string requestToken, std::string      if (!oauthVerifier.empty())          body["oauth_verifier"] = oauthVerifier; -    LLSD result = httpAdapter->putAndYield(httpRequest, getTwitterConnectURL("/connection"), body, httpOpts); +    LLSD result = httpAdapter->putAndSuspend(httpRequest, getTwitterConnectURL("/connection"), body, httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -166,7 +166,7 @@ void LLTwitterConnect::twitterShareCoro(std::string route, LLSD share)      httpOpts->setWantHeaders(true);      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->postAndYield(httpRequest, getTwitterConnectURL(route, true), share, httpOpts); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, getTwitterConnectURL(route, true), share, httpOpts);      if (testShareStatus(result))      { @@ -231,7 +231,7 @@ void LLTwitterConnect::twitterShareImageCoro(LLPointer<LLImageFormatted> image,      body << "\r\n--" << boundary << "--\r\n"; -    LLSD result = httpAdapter->postAndYield(httpRequest, getTwitterConnectURL("/share/photo", true), raw, httpOpts, httpHeaders); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, getTwitterConnectURL("/share/photo", true), raw, httpOpts, httpHeaders);      if (testShareStatus(result))      { @@ -253,7 +253,7 @@ void LLTwitterConnect::twitterDisconnectCoro()      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->deleteAndYield(httpRequest, getTwitterConnectURL("/connection"), httpOpts); +    LLSD result = httpAdapter->deleteAndSuspend(httpRequest, getTwitterConnectURL("/connection"), httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -287,7 +287,7 @@ void LLTwitterConnect::twitterConnectedCoro(bool autoConnect)      httpOpts->setFollowRedirects(false);      setConnectionState(LLTwitterConnect::TWITTER_CONNECTION_IN_PROGRESS); -    LLSD result = httpAdapter->getAndYield(httpRequest, getTwitterConnectURL("/connection", true), httpOpts); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, getTwitterConnectURL("/connection", true), httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -336,7 +336,7 @@ void LLTwitterConnect::twitterInfoCoro()      httpOpts->setWantHeaders(true);      httpOpts->setFollowRedirects(false); -    LLSD result = httpAdapter->getAndYield(httpRequest, getTwitterConnectURL("/info", true), httpOpts); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, getTwitterConnectURL("/info", true), httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llviewerassetupload.cpp b/indra/newview/llviewerassetupload.cpp index 6c6d3a4f33..e8f9809ee7 100644 --- a/indra/newview/llviewerassetupload.cpp +++ b/indra/newview/llviewerassetupload.cpp @@ -689,7 +689,7 @@ void LLViewerAssetUpload::AssetInventoryUploadCoproc(LLCoreHttpUtil::HttpCorouti          return;      } -    llcoro::yield(); +    llcoro::suspend();      if (uploadInfo->showUploadDialog())      { @@ -700,7 +700,7 @@ void LLViewerAssetUpload::AssetInventoryUploadCoproc(LLCoreHttpUtil::HttpCorouti      LLSD body = uploadInfo->generatePostBody(); -    result = httpAdapter->postAndYield(httpRequest, url, body); +    result = httpAdapter->postAndSuspend(httpRequest, url, body);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -718,7 +718,7 @@ void LLViewerAssetUpload::AssetInventoryUploadCoproc(LLCoreHttpUtil::HttpCorouti      bool success = false;      if (!uploader.empty() && uploadInfo->getAssetId().notNull())      { -        result = httpAdapter->postFileAndYield(httpRequest, uploader, uploadInfo->getAssetId(), uploadInfo->getAssetType()); +        result = httpAdapter->postFileAndSuspend(httpRequest, uploader, uploadInfo->getAssetId(), uploadInfo->getAssetType());          httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];          status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llviewermedia.cpp b/indra/newview/llviewermedia.cpp index f332a4e98e..75a201d92f 100755 --- a/indra/newview/llviewermedia.cpp +++ b/indra/newview/llviewermedia.cpp @@ -1280,7 +1280,7 @@ void LLViewerMedia::getOpenIDCookieCoro(std::string url)      LL_DEBUGS("MediaAuth") << "Requesting " << url << LL_ENDL;      LL_DEBUGS("MediaAuth") << "sOpenIDCookie = [" << sOpenIDCookie << "]" << LL_ENDL; -    LLSD result = httpAdapter->getRawAndYield(httpRequest, url, httpOpts, httpHeaders); +    LLSD result = httpAdapter->getRawAndSuspend(httpRequest, url, httpOpts, httpHeaders);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -1347,7 +1347,7 @@ void LLViewerMedia::openIDSetupCoro(std::string openidUrl, std::string openidTok      bas << std::noskipws << openidToken; -    LLSD result = httpAdapter->postRawAndYield(httpRequest, openidUrl, rawbody, httpOpts, httpHeaders); +    LLSD result = httpAdapter->postRawAndSuspend(httpRequest, openidUrl, rawbody, httpOpts, httpHeaders);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -2600,7 +2600,7 @@ void LLViewerMediaImpl::mimeDiscoveryCoro(std::string url)      httpHeaders->append(HTTP_OUT_HEADER_ACCEPT, "*/*");      httpHeaders->append(HTTP_OUT_HEADER_COOKIE, ""); -    LLSD result = httpAdapter->getRawAndYield(httpRequest, url, httpOpts, httpHeaders); +    LLSD result = httpAdapter->getRawAndSuspend(httpRequest, url, httpOpts, httpHeaders);      mMimeProbe.reset(); @@ -3634,7 +3634,7 @@ void LLViewerMediaImpl::cancelMimeTypeProbe()      LLCoreHttpUtil::HttpCoroutineAdapter::ptr_t probeAdapter = mMimeProbe.lock();      if (probeAdapter) -        probeAdapter->cancelYieldingOperation(); +        probeAdapter->cancelSuspendedOperation();  }  void LLViewerMediaImpl::addObject(LLVOVolume* obj)  diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index 9b0035d547..e193e8431e 100755 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -1052,7 +1052,7 @@ void LLViewerObjectList::fetchObjectCostsCoro(std::string url)      postData["object_ids"] = idList; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -1181,7 +1181,7 @@ void LLViewerObjectList::fetchPhisicsFlagsCoro(std::string url)      postData["object_ids"] = idList; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llviewerregion.cpp b/indra/newview/llviewerregion.cpp index 4ed90d26b7..8c4a6935a6 100755 --- a/indra/newview/llviewerregion.cpp +++ b/indra/newview/llviewerregion.cpp @@ -273,7 +273,7 @@ void LLViewerRegionImpl::requestBaseCapabilitiesCoro(U64 regionHandle)              << " (attempt #" << mSeedCapAttempts << ")" << LL_ENDL;          regionp = NULL; -        result = httpAdapter->postAndYield(httpRequest, url, capabilityNames); +        result = httpAdapter->postAndSuspend(httpRequest, url, capabilityNames);          regionp = LLWorld::getInstance()->getRegionFromHandle(regionHandle);          if (!regionp) //region was removed @@ -363,7 +363,7 @@ void LLViewerRegionImpl::requestBaseCapabilitiesCompleteCoro(U64 regionHandle)          LL_INFOS("AppInit", "Capabilities") << "Requesting second Seed from " << url << LL_ENDL;          regionp = NULL; -        result = httpAdapter->postAndYield(httpRequest, url, capabilityNames); +        result = httpAdapter->postAndSuspend(httpRequest, url, capabilityNames);          LLSD httpResults = result["http_result"];          LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -462,7 +462,7 @@ void LLViewerRegionImpl::requestSimulatorFeatureCoro(std::string url, U64 region          }          regionp = NULL; -        LLSD result = httpAdapter->getAndYield(httpRequest, url); +        LLSD result = httpAdapter->getAndSuspend(httpRequest, url);          LLSD httpResults = result["http_result"];          LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llvoavatarself.cpp b/indra/newview/llvoavatarself.cpp index fb2171ccc2..e7dee14387 100755 --- a/indra/newview/llvoavatarself.cpp +++ b/indra/newview/llvoavatarself.cpp @@ -2203,7 +2203,7 @@ void LLVOAvatarSelf::appearanceChangeMetricsCoro(std::string url)      gPendingMetricsUploads++; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, msg); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, msg);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llvoicechannel.cpp b/indra/newview/llvoicechannel.cpp index 192d50ae9b..3abb716593 100755 --- a/indra/newview/llvoicechannel.cpp +++ b/indra/newview/llvoicechannel.cpp @@ -617,7 +617,7 @@ void LLVoiceChannelGroup::voiceCallCapCoro(std::string url)      LL_INFOS("Voice", "voiceCallCapCoro") << "Generic POST for " << url << LL_ENDL; -    LLSD result = httpAdapter->postAndYield(httpRequest, url, postData); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, postData);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llvoicevivox.cpp b/indra/newview/llvoicevivox.cpp index f50ffdeae7..d14fac5fb8 100755 --- a/indra/newview/llvoicevivox.cpp +++ b/indra/newview/llvoicevivox.cpp @@ -462,7 +462,7 @@ void LLVivoxVoiceClient::voiceAccountProvisionCoro(std::string url, S32 retries)      httpOpts->setRetries(retries); -    LLSD result = httpAdapter->postAndYield(httpRequest, url, LLSD(), httpOpts); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, LLSD(), httpOpts);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -3941,7 +3941,7 @@ void LLVivoxVoiceClient::parcelVoiceInfoRequestCoro(std::string url)      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest);      state requestingState = getState(); -    LLSD result = httpAdapter->postAndYield(httpRequest, url, LLSD()); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, LLSD());      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llwebprofile.cpp b/indra/newview/llwebprofile.cpp index 2033a5f36a..06ce497510 100755 --- a/indra/newview/llwebprofile.cpp +++ b/indra/newview/llwebprofile.cpp @@ -124,7 +124,7 @@ void LLWebProfile::uploadImageCoro(LLPointer<LLImageFormatted> image, std::strin      httpHeaders = buildDefaultHeaders();      httpHeaders->append(HTTP_OUT_HEADER_COOKIE, getAuthCookie()); -    LLSD result = httpAdapter->getJsonAndYield(httpRequest, configUrl, httpOpts, httpHeaders); +    LLSD result = httpAdapter->getJsonAndSuspend(httpRequest, configUrl, httpOpts, httpHeaders);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); @@ -150,7 +150,7 @@ void LLWebProfile::uploadImageCoro(LLPointer<LLImageFormatted> image, std::strin      LLCore::BufferArray::ptr_t body = LLWebProfile::buildPostData(data, image, boundary); -    result = httpAdapter->postAndYield(httpRequest, uploadUrl, body, httpOpts, httpHeaders); +    result = httpAdapter->postAndSuspend(httpRequest, uploadUrl, body, httpOpts, httpHeaders);      body.reset();      httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS]; @@ -178,7 +178,7 @@ void LLWebProfile::uploadImageCoro(LLPointer<LLImageFormatted> image, std::strin      LL_DEBUGS("Snapshots") << "Got redirection URL: " << redirUrl << LL_ENDL; -    result = httpAdapter->getRawAndYield(httpRequest, redirUrl, httpOpts, httpHeaders); +    result = httpAdapter->getRawAndSuspend(httpRequest, redirUrl, httpOpts, httpHeaders);      httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); diff --git a/indra/newview/llwlhandlers.cpp b/indra/newview/llwlhandlers.cpp index ff15afa598..8ecfeef2dc 100755 --- a/indra/newview/llwlhandlers.cpp +++ b/indra/newview/llwlhandlers.cpp @@ -101,7 +101,7 @@ void LLEnvironmentRequest::environmentRequestCoro(std::string url)              httpAdapter(new LLCoreHttpUtil::HttpCoroutineAdapter("EnvironmentRequest", httpPolicy));      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      if (requestId != LLEnvironmentRequest::sLastRequest)      { @@ -185,7 +185,7 @@ void LLEnvironmentApply::environmentApplyCoro(std::string url, LLSD content)          httpAdapter(new LLCoreHttpUtil::HttpCoroutineAdapter("EnvironmentApply", httpPolicy));      LLCore::HttpRequest::ptr_t httpRequest(new LLCore::HttpRequest); -    LLSD result = httpAdapter->postAndYield(httpRequest, url, content); +    LLSD result = httpAdapter->postAndSuspend(httpRequest, url, content);      LLSD notify; // for error reporting.  If there is something to report to user this will be defined.      /* diff --git a/indra/viewer_components/login/lllogin.cpp b/indra/viewer_components/login/lllogin.cpp index 88415ff11a..1feb41faf6 100755 --- a/indra/viewer_components/login/lllogin.cpp +++ b/indra/viewer_components/login/lllogin.cpp @@ -175,7 +175,7 @@ void LLLogin::Impl::login_(std::string uri, LLSD login_params)  		request["op"] = "rewriteURI";  		request["uri"] = uri;  		request["reply"] = replyPump.getName(); -		rewrittenURIs = llcoro::postAndWait(request, srv_pump_name, filter); +		rewrittenURIs = llcoro::postEventAndSuspend(request, srv_pump_name, filter);  		// EXP-772: If rewrittenURIs fail, try original URI as a fallback.  		rewrittenURIs.append(uri);      } // we no longer need the filter @@ -215,16 +215,16 @@ void LLLogin::Impl::login_(std::string uri, LLSD login_params)              sendProgressEvent("offline", "authenticating", progress_data);              // We expect zero or more "Downloading" status events, followed by -            // exactly one event with some other status. Use postAndWait() the +            // exactly one event with some other status. Use postEventAndSuspend() the              // first time, because -- at least in unit-test land -- it's              // possible for the reply to arrive before the post() call              // returns. Subsequent responses, of course, must be awaited              // without posting again.              for (mAuthResponse = validateResponse(loginReplyPump.getName(), -                     llcoro::postAndWait(request, xmlrpcPump, loginReplyPump, "reply")); +                     llcoro::postEventAndSuspend(request, xmlrpcPump, loginReplyPump, "reply"));                   mAuthResponse["status"].asString() == "Downloading";                   mAuthResponse = validateResponse(loginReplyPump.getName(), -                                                  llcoro::waitForEventOn(loginReplyPump))) +                                                  llcoro::suspendUntilEventOn(loginReplyPump)))              {                  // Still Downloading -- send progress update.                  sendProgressEvent("offline", "downloading"); diff --git a/indra/viewer_components/updater/llupdatechecker.cpp b/indra/viewer_components/updater/llupdatechecker.cpp index e889f83aa9..1bb5e95740 100755 --- a/indra/viewer_components/updater/llupdatechecker.cpp +++ b/indra/viewer_components/updater/llupdatechecker.cpp @@ -135,7 +135,7 @@ void LLUpdateChecker::Implementation::checkVersionCoro(std::string url)      LL_INFOS("checkVersionCoro") << "Getting update information from " << url << LL_ENDL; -    LLSD result = httpAdapter->getAndYield(httpRequest, url); +    LLSD result = httpAdapter->getAndSuspend(httpRequest, url);      LLSD httpResults = result[LLCoreHttpUtil::HttpCoroutineAdapter::HTTP_RESULTS];      LLCore::HttpStatus status = LLCoreHttpUtil::HttpCoroutineAdapter::getStatusFromLLSD(httpResults); | 
