1. 29 4月, 2021 1 次提交
  2. 01 4月, 2021 1 次提交
  3. 09 3月, 2021 1 次提交
  4. 03 3月, 2021 1 次提交
  5. 12 9月, 2020 1 次提交
    • C
      Clean up C++ includes (#21127) · 08dabe96
      Chris Bracken 提交于
      Cleans up header order/grouping for consistency: associated header, C/C++ system/standard library headers, library headers, platform-specific #includes.
      
      Adds <cstring> where strlen, memcpy are being used: there are a bunch of places we use them transitively.
      
      Applies linter-required cleanups. Disables linter on one file due to included RapidJson header. See https://github.com/flutter/flutter/issues/65676
      
      This patch does not cover flutter/shell/platform/darwin. There's a separate, slightly more intensive cleanup for those in progress.
      08dabe96
  6. 28 8月, 2020 1 次提交
  7. 25 8月, 2020 1 次提交
  8. 19 8月, 2020 1 次提交
  9. 31 7月, 2020 1 次提交
  10. 23 7月, 2020 1 次提交
  11. 01 11月, 2019 1 次提交
  12. 30 10月, 2019 2 次提交
  13. 23 8月, 2019 1 次提交
    • K
      Make message loop task entry containers thread safe (#11367) · 632a37b5
      Kaushik Iska 提交于
      The core underlying issue is that vector push_back could re-allocate and cause us to segfault. I have switched the backing queues to a map per @jason-simmons suggestion in flutter/flutter#38778.
      
      I've also added a test to capture the aforementioned bug. I've run internal tests several times to validate that this is fixed.
      
      General threading note for this class is that only the following operations take a write lock on the meta mutex:
      
      1. Create
      2. Dispose
      
      The rest of the operations take read lock on the meta mutex and acquire finer grained locks for the duration of the operation. We can not grab read lock for the entire duration of NotifyObservers for example because observer can in-turn create other queues -- Which we should not block.
      
      Additional changes:
      
      1. Make as many methods as possible const. Unlocked methods are all const.
      2. Migrate all the queue members to a struct, and have a map.
      3. Get rid of the un-used Swap functionality.
      632a37b5
  14. 13 7月, 2019 1 次提交
    • K
      Add the functionality to merge and unmerge MessageLoopTaskQueues (#9436) · 379028ab
      Kaushik Iska 提交于
      - Add the functionality to merge and unmerge MessageLoopTaskQueues
      
      This introduces a notion of a "owning" and "subsumed" queue ids.
      Owning queue will take care of the tasks submitted to both that and it's
      subsumed queue.
      
      - The tasks submitted still maintain the queue affinity
      - Same for the task observers
      
      - Also adds MergedQueuesRunner which grabs both the locks owner
        and subsumed queues in RAII fashion.
      
      - Also use task queue id to verify if we are running
        in the same thread.
      
      - This is to enable merging the backed message loop task
        queues to enable dynamic thread merging in IOS.
      379028ab
  15. 20 6月, 2019 1 次提交