dont use named events or mutexs

in case of multiple sessions (in multiuser environment)
we can't create event with the same name.
This commit is contained in:
Olga Kornievskaia 2011-09-30 12:41:54 -04:00
parent 96e334be8c
commit c90811be75
2 changed files with 3 additions and 3 deletions

View file

@ -174,7 +174,7 @@ int nfs41_rpc_clnt_create(
needcb = 0;
#endif
rpc->needcb = needcb;
rpc->cond = CreateEvent(NULL, TRUE, FALSE, "rpc_recovery_cond");
rpc->cond = CreateEvent(NULL, TRUE, FALSE, NULL);
if (rpc->cond == NULL) {
status = GetLastError();
eprintf("CreateEvent failed %d\n", status);

View file

@ -40,14 +40,14 @@ static int init_slot_table(nfs41_slot_table *table)
int i, status = 0;
//initialize slot table lock
table->lock = CreateMutex(NULL, FALSE, "session_table_lock");
table->lock = CreateMutex(NULL, FALSE, NULL);
if (table->lock == NULL) {
status = GetLastError();
eprintf("init_slot_table: CreateMutex failed %d\n", status);
goto out;
}
//initialize condition variable for slots
table->cond = CreateEvent(NULL, TRUE, FALSE, "session_table_cond");
table->cond = CreateEvent(NULL, TRUE, FALSE, NULL);
if (table->cond == NULL) {
status = GetLastError();
eprintf("init_slot_table: CreateEvent failed %d\n", status);