Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
comparison VMS.c @ 183:c66137e4dc2f
random wait time between tries to aquire master lock, because of performance penalties due to lock contention
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Fri, 13 Jan 2012 11:49:05 +0100 |
| parents | c3f458403cd6 |
| children | 0320b49ca013 |
comparison
equal
deleted
inserted
replaced
| 84:b37d437e2ebb | 85:d2370869bf6e |
|---|---|
| 191 posix_memalign(&schedSlots, CACHELINE_SIZE, NUM_SCHED_SLOTS * sizeof(SchedSlot *)); | 191 posix_memalign(&schedSlots, CACHELINE_SIZE, NUM_SCHED_SLOTS * sizeof(SchedSlot *)); |
| 192 | 192 |
| 193 for( i = 0; i < NUM_SCHED_SLOTS; i++ ) | 193 for( i = 0; i < NUM_SCHED_SLOTS; i++ ) |
| 194 { | 194 { |
| 195 //schedSlots[i] = VMS__malloc( sizeof(SchedSlot) ); | 195 //schedSlots[i] = VMS__malloc( sizeof(SchedSlot) ); |
| 196 posix_memalign(&schedSlots[i], CACHELINE_SIZE, sizeof(SchedSlot) ); | 196 posix_memalign(&schedSlots[i], CACHELINE_SIZE, CACHELINE_SIZE ); |
| 197 | 197 |
| 198 //Set state to mean "handling requests done, slot needs filling" | 198 //Set state to mean "handling requests done, slot needs filling" |
| 199 schedSlots[i]->workIsDone = FALSE; | 199 schedSlots[i]->workIsDone = FALSE; |
| 200 schedSlots[i]->needsProcrAssigned = TRUE; | 200 schedSlots[i]->needsProcrAssigned = TRUE; |
| 201 } | 201 } |
