The standard grantees, which are thread identifiers, are unique across streams, he also says that completed stream identifiers can be reused. It does not define processes and does not recognize their existence; therefore, it does not guarantee the uniqueness of processes.
30.3.1.1
- An object of type thread :: id provides a unique identifier for each thread of execution and one separate value for all objects of the thread that do not represent a thread of execution (30.3.1). Each thread of execution has an associated thread :: id object, which is not equal to thread :: id of the object of any other thread of execution, and this is not equal to the thread :: id object of any std :: thread object that thread threads do not represent.
- thread :: id should be a copyable class (section 9). The library can reuse the value of the stream :: id of the final thread that can no longer be combined.
The standard also hides the implementation of the :: id stream, it could be int or something else.
Ion todirel
source share