GithubHelp home page GithubHelp logo

Comments (5)

Zuoweixiang avatar Zuoweixiang commented on July 25, 2024 1

@Quanhua-Guan 3q,非常感谢,当时是考虑到同步队列可能导致死锁的问题,就移出来了。后续我们会有相关的优化,已经在开发测试中了。如果动态属性没有设置如下类似的代码,可以改回来 1.10.17 的版本。我们也会尽快修改 发布新的版本

 [[SensorsAnalyticsSDK sharedInstance] registerDynamicSuperProperties:^NSDictionary * _Nonnull{
        __block UIApplicationState appState;
        if (NSThread.isMainThread) {
            appState = UIApplication.sharedApplication.applicationState;
        }else {
            dispatch_sync(dispatch_get_main_queue(), ^{
                appState = UIApplication.sharedApplication.applicationState;
            });
        }
        return @{@"__APPState__":@(appState)};
    }];

from sa-sdk-ios.

Quanhua-Guan avatar Quanhua-Guan commented on July 25, 2024

尴尬, 原来是对的:-( (正确版本 1.10.17) @zouyuhan @zswang @dawn110110 @huadupi @王灼洲
2019-01-04 10 26 36

from sa-sdk-ios.

Quanhua-Guan avatar Quanhua-Guan commented on July 25, 2024

解决BUG的PR #27

from sa-sdk-ios.

Quanhua-Guan avatar Quanhua-Guan commented on July 25, 2024

谢谢回复.
比较感兴趣之前代码(即1.10.17版本)什么情况下会产生死锁? @Zuoweixiang

from sa-sdk-ios.

Zuoweixiang avatar Zuoweixiang commented on July 25, 2024

@Quanhua-Guan SDK 中有部分同步队列的代码,这种情况下会有问题。

 dispatch_sync(self.serialQueue, ^{
 });

from sa-sdk-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.