Original Post
In order to get my engine to integrate a scripting language well I'm trying to develop a generic message system that all kernel tasks can pass and receive. The issue I'm running into is how to identify messages. I'd rather not use integers and defines because I would like to be able to add and use custom messages strictly from the scripting side. Also, messages are going to need a type because tasks should be able to subscribe to specific messages along with a type of message. The last thing I need to support is the ability to allow certain tasks to hijack the message queue so I can do things like get text input instead of calling events. Are there any good articles on messaging systems and how they relate to a micro-kernel task system? Does anyone have any ideas/suggestions reguarding the messaging system? I should mention, I would also like this to be the primary form of communication between system tasks. Thanks for reading! Tim.