Skip to content
This repository was archived by the owner on May 28, 2019. It is now read-only.
This repository was archived by the owner on May 28, 2019. It is now read-only.

Lock before add "task_count_" and "task_cost_sum_"  #65

Description

@baobaoyeye

thread_pool.h中 ThreadProc函数,是否应该在进行统计耗时和任务数前就Lock
或者通过volatile对耗时和任务数做修饰?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions