|
pthread_mutex_init gives the same mutex address twice
|
10/23/2012 2:39 AM
post96538
|
pthread_mutex_init gives the same mutex address twice
i have a server process which creates a mutex for the client process, means when the client process starts, it gives a
message to server process. the server process initializes a mutex for the client process. When the client process gets
terminated, the server does not destroy the mutex. Again the client starts up, and in the server i get the same mutex
address, during pthread_mutex_init call.
Is it a OK behaviour, without the destroy i am getting the same mutex again ?
Please help.
Regards,
Manas
|
|
|