Changeset 175 for soft/giet_vm/libs/mwmr_channel.c
- Timestamp:
- Jul 21, 2012, 10:20:47 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/libs/mwmr_channel.c
r165 r175 33 33 #include <mwmr_channel.h> 34 34 #include <stdio.h> 35 #include <common.h> 35 36 36 37 ////////////////////////////////////////////////////////////////////////////// … … 85 86 unsigned int ptw; // channel ptw 86 87 88 if(nitems == 0) 89 return; 90 91 assert(buffer && "mwmr write: Empty buffer"); 92 87 93 while(1) 88 94 { … … 118 124 else // write as many items as possible, release lock and retry after delay 119 125 { 120 nwords = (spaces/width) * width; // integer n mber of items126 nwords = (spaces/width) * width; // integer number of items 121 127 for ( x = 0 ; x < nwords ; x++ ) 122 128 { … … 157 163 unsigned int ptr; // channel ptw 158 164 165 if(nitems == 0) 166 return; 167 168 assert(buffer && "mwmr read: Empty buffer"); 169 159 170 while(1) 160 171 {
Note: See TracChangeset
for help on using the changeset viewer.