session: slot table uses SleepConditionVariableCS
changed nfs41_slot_table.lock and .cond to a CRITICAL_SECTION and CONDITION_VARIABLE for use with SleepConditionVariableCS() added a 'num_used' field to simplify the condition variable's predicate function slot_table_avail() Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
parent
54551655d0
commit
94fc1d946c
2 changed files with 82 additions and 148 deletions
|
|
@ -221,8 +221,9 @@ typedef struct __nfs41_slot_table {
|
|||
uint32_t used_slots[NFS41_MAX_NUM_SLOTS];
|
||||
uint32_t max_slots;
|
||||
uint32_t highest_used;
|
||||
HANDLE lock;
|
||||
HANDLE cond;
|
||||
uint32_t num_used;
|
||||
CRITICAL_SECTION lock;
|
||||
CONDITION_VARIABLE cond;
|
||||
} nfs41_slot_table;
|
||||
|
||||
typedef struct __nfs41_channel_attrs {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue