« first day (1304 days earlier)      last day (1124 days later) » 

1:29 AM
    class Primitive
    {
    public:
        Primitive();
        virtual ~Primitive() = default;

        virtual unsigned int getNumberOfVerticies() const = 0;
        virtual float const * getVerticies() const = 0;

        virtual float& operator [] (int const index) = 0;

        unsigned int getVertexBufferObjectID() const;

    protected:
        unsigned int m_vertexBufferObjectID;
    };
 
1 message moved from Lounge<C++>
 
 
5 hours later…
user1646075
6:19 AM
 
8:01 AM
1 message moved from Lounge<C++>
 
 
1 hour later…
9:09 AM
 
user1646075
 
2 messages moved from Lounge<C++>
 
3
A: How to limit the number of running instances in C++

sehe UPDATE My other answer addresses scheduling resources among threads (after the question was clarified). It shows both a semaphore approach to coordinate work among (many) workers, and a thread_pool to limit workers in the first place and queue the work. On linux (and perhaps other OSes?...

1 message moved from Lounge<C++>
 

« first day (1304 days earlier)      last day (1124 days later) »