Skip to content

Descriptive Bug in the source code of the video QSemaphore #2

@MujassimJamal

Description

@MujassimJamal

There is a qInfo descriptive bug at line no. 18 in your worker.cpp file.
As per the official definition of QSemaphore's available() method, it returns the number of available resources to the semaphore rather the number of resources we acquire.

Here's an example:
Screenshot from 2023-12-31 11-19-35

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