Skip to content

线程问题 #11

@kiddhmh

Description

@kiddhmh

大佬,请问是在主线程执行还是创建子线程?我看demo里先创建了子线程又获取主线程

  • (dispatch_queue_t)queue
    {
    if (!_queue) {
    _queue = dispatch_queue_create("SSWKURLHandler.queue", DISPATCH_QUEUE_SERIAL);
    _queue = dispatch_get_main_queue();
    }
    return _queue;
    }

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions