Image

Imagelife_warrior wrote in Imagecpp

There is a class with static member variable.
The class is used in one application in different threads.

class Special
{
public:
static int iCounter; // single variable for all threads?
};

Can someone tell me, is there going to be one instance of variable for the whole application or there are gonna be as many instances of static variable as there are threads using this class?

Thanks in advance,
waiting for your answer.

PS. If there's a chapter in Stroustroup or anywhere else that mentions this, please point me to that part.