TNeoKernel  v1.01
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages

Table of Contents

I have plans to implement some goodies not yet present in the kernel.

Timer object

It would be sometimes useful to have ability to ask the kernel to call custom function in the future, or even call it periodically. This is what Timer object is for. The overhead of it would be the same as if we put some task to wait for specified timeout, i.e. it's really little overhead.

If we have no registered Timer objects, no extra overhead involved at all.

Event connecting

Sometimes we need to wait, say, for messages from several queues simultaneously; currently, the kernel does not have built-in support of it. How I plan to implement it: there should be a way to connect an event group and custom events mask to the data queue. Then, data queue will maintain flag(s) specified by mask: when queue is non-empty, it will set flag(s) by mask, when queue becomes empty, it will clear these flag(s).

Then, we can connect single event group to several queues passing different flags, and wait for the messages from all of these queues with just a single call to tn_eventgrp_wait() and friends. When event happened, we just check which flags are set, and get message from appropriate queue.

Probably it makes sense to connect event group to other objects as well, I haven't thought about this feature in detail yet. But, queue support is definitely must have.