SLOsTaskQueue.sleela
lib/os-level-support/SLOsTaskQueue.sleela · 59 line(s) · sleela
<< SLeeLa Standard Library Definition.
Definition: Descriptive contract for the bounded cooperative task queue in the native OS-support library.
This SLeeLa value does not enqueue or execute native callbacks. >>
#sleela 2.5
material;
class SLOsTaskQueue {
< ---- Descriptive metadata (version 1.11 nested-friendly accessors) ---- >
<< Eleven catalogued attributes with getter/setter pairs, so a GUI, loader,
or catalog can read and (where appropriate) override each record.
Values are faithful to the subject's real origin where publicly known. >>
String metaVersion = "1.0.0";
int metaId = 0;
String metaAuthor = "mearvk";
String metaDate = "2026-11-05";
String metaCopyright = "Copyright mearvk LLC";
String metaTrademark = "none";
String metaCorporation = "mearvk LLC";
< metaOrigin: National | <nation> | International | Galactic >
String metaOrigin = "International";
String metaBirthDate = "2026-11-05";
< metaScienceRating: maturity/robustness on a 1..10 scale >
int metaScienceRating = 8;
< metaNationalSchedule: a real, citable instrument or "none" >
String metaNationalSchedule = "none";
String getMetaVersion() { return metaVersion; }
void setMetaVersion(String value) { metaVersion = value; }
int getMetaId() { return metaId; }
void setMetaId(int value) { metaId = value; }
String getMetaAuthor() { return metaAuthor; }
void setMetaAuthor(String value) { metaAuthor = value; }
String getMetaDate() { return metaDate; }
void setMetaDate(String value) { metaDate = value; }
String getMetaCopyright() { return metaCopyright; }
void setMetaCopyright(String value) { metaCopyright = value; }
String getMetaTrademark() { return metaTrademark; }
void setMetaTrademark(String value) { metaTrademark = value; }
String getMetaCorporation() { return metaCorporation; }
void setMetaCorporation(String value) { metaCorporation = value; }
String getMetaOrigin() { return metaOrigin; }
void setMetaOrigin(String value) { metaOrigin = value; }
String getMetaBirthDate() { return metaBirthDate; }
void setMetaBirthDate(String value) { metaBirthDate = value; }
int getMetaScienceRating() { return metaScienceRating; }
void setMetaScienceRating(int value) { metaScienceRating = value; }
String getMetaNationalSchedule() { return metaNationalSchedule; }
void setMetaNationalSchedule(String value) { metaNationalSchedule = value; }
int capacity = 128;
int pendingCount = 0;
boolean taskRunning = false;
String executionModel = "post queues work; run-one executes at most one task";
int getCapacity() { return capacity; }
int getPendingCount() { return pendingCount; }
boolean isTaskRunning() { return taskRunning; }
String getExecutionModel() { return executionModel; }
}