Skip to content
Snippets Groups Projects
  1. Jan 26, 2017
  2. Dec 07, 2016
    • Ramin Yaghoubzadeh Torky's avatar
      cpp: Fixed successive batch updates on same top level key [ATTENTION] · 219bc821
      Ramin Yaghoubzadeh Torky authored
      Read access in locked payloads is performed on queued operations
      before searching the old database. Threads other than the locking
      thread consistently read the old information.
      
      On POSIX, default Lock now also uses boost::thread (instead of pthread)
      pthread linkage is still present for legacy wrapping.
      
      ATTENTION: unlocked payload writing is (by design) not thread-safe
      (won't crash but data might be inconsistent). Please use Locker armors
      around all code that might modify a payload in more than one thread.
      ---> #1: Always use Locker in IU handlers that write to existing IUs!!
      219bc821
  3. Dec 04, 2015
  4. Apr 08, 2015
    • Ramin Yaghoubzadeh Torky's avatar
      C++: batch updates · 75e61345
      Ramin Yaghoubzadeh Torky authored
      Use with Locker, possible in a dedicated stack frame, like this:
      // ... code ...
      { // open stack frame
      	Locker locker(iu->payload());
      	iu->payload()["a"] = "string";
      	iu->payload()["b"] = "simultaneouslySentString";
      } // close stack frame, sending the update
      75e61345
  5. Mar 28, 2015
  6. Mar 03, 2015
  7. Feb 27, 2015
    • Ramin Yaghoubzadeh Torky's avatar
      C++: iteration over deep proxies · f4393e75
      Ramin Yaghoubzadeh Torky authored
      Address mode must be selected explicitly using as_map/as_list, like so:
        for (auto value: iu->payload()["listItem"].as_list()) { .... }
        for (auto kv_pair: iu->payload()["mapItem"].as_map()) { .... }
      Generic size() function (reports 0 for non-structured types)
      f4393e75
  8. Feb 26, 2015
  9. Feb 25, 2015
  10. Feb 24, 2015
  11. Feb 23, 2015
  12. Feb 20, 2015
  13. Feb 16, 2015
  14. Feb 14, 2015
  15. Feb 09, 2015
  16. Feb 05, 2015
  17. Jan 30, 2015
Loading