135 |
} |
} |
136 |
|
|
137 |
/* Make sure that the class has been laid out */ |
/* Make sure that the class has been laid out */ |
138 |
IL_METADATA_WRLOCK(_thread); |
IL_METADATA_WRLOCK(_ILExecThreadProcess(_thread)); |
139 |
if(!_ILLayoutClass(classInfo)) |
if(!_ILLayoutClass(_ILExecThreadProcess(_thread), classInfo)) |
140 |
{ |
{ |
141 |
IL_METADATA_UNLOCK(_thread); |
IL_METADATA_UNLOCK(_ILExecThreadProcess(_thread)); |
142 |
return -1; |
return -1; |
143 |
} |
} |
144 |
|
|
154 |
!strcmp(ILField_Name(field), name)) |
!strcmp(ILField_Name(field), name)) |
155 |
{ |
{ |
156 |
offset = (ILNativeInt)(ILUInt32)(field->offset); |
offset = (ILNativeInt)(ILUInt32)(field->offset); |
157 |
IL_METADATA_UNLOCK(_thread); |
IL_METADATA_UNLOCK(_ILExecThreadProcess(_thread)); |
158 |
return offset; |
return offset; |
159 |
} |
} |
160 |
} |
} |
161 |
classInfo = ILClass_Parent(classInfo); |
classInfo = ILClass_Parent(classInfo); |
162 |
} |
} |
163 |
IL_METADATA_UNLOCK(_thread); |
IL_METADATA_UNLOCK(_ILExecThreadProcess(_thread)); |
164 |
} |
} |
165 |
return -1; |
return -1; |
166 |
} |
} |