![]() |
C-chat
|
Public Attributes | |
char | name [ROOM_NAME_MAX_LENGTH+1] |
char | description [ROOM_DESC_MAX_LENGTH+1] |
Client * | clients [MAX_USERS_PER_ROOM] |
Client * | owner |
ReadWriteLock | lock |
Client* Room::clients[MAX_USERS_PER_ROOM] |
An array of pointers to clients who joined the room.
It can be written by any client thread at any time if a client joins the room or leaves the room. It can be read by any client at any time to relay a packet.
We MUST acquire lock field to access this field.