Lock (Kernel)

Lock(resourceType resourceNumber [lock])

Important

SCI1.1 only.

Locks or unlocks resources of a certain type. Locking presuambly prevents a resource from being unloaded, so it is likely a performance optimization.

Parameters:
  • resourceType (number) – A resource type, e.g. rsVIEW, rsPIC, etc...
  • resourceNum (number) – A resource number, or $ffff for all resources of that type.
  • lock (boolean) – If TRUE or unspecified, the resource(s) is locked. Otherwise they are locked.