2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-04-03 21:48:21 +00:00

Deadlock prevention

This commit is contained in:
2022-03-31 12:08:31 +03:00
parent fa76cf99a6
commit 0db7f6c1e4
7 changed files with 160 additions and 154 deletions

View File

@@ -7,7 +7,7 @@ export default class PropertyModificationInfo {
return this.propertyTemplate.name;
}
PropertyModificationInfo(
constructor(
resource, propertyTemplate, value, age) {
this.resource = resource;
this.propertyTemplate = propertyTemplate;

View File

@@ -545,7 +545,7 @@ export default class TypeTemplate {
offset += dt.size;
let parsed = Codec.parse(data, offset, null);
let parsed = Codec.parse(data, offset, null, null);
offset += parsed.size;

View File

@@ -47,7 +47,9 @@ import { Int8, Int16, Int32, Int64, UInt8, UInt16, UInt32, UInt64, Float32, Floa
import Record from '../Data/Record.js';
import TypedMap from '../Data/TypedMap.js';
import {RepresentationType, RepresentationTypeIdentifier} from '../Data/RepresentationType.js';
import FactoryEntry from './FactoryEntry.js'; './FactoryEntry.js';
import FactoryEntry from './FactoryEntry.js';
import IEnum from '../Data/IEnum.js';
export class WH extends IEventHandler
{
constructor()
@@ -328,6 +330,8 @@ export class WH extends IEventHandler
templateType = TemplateType.Resource;
else if (type.prototype instanceof IRecord)
templateType = TemplateType.Record;
else if (type.prototype instanceof IEnum)
templateType = TemplateType.Enum;
else
return null;