Skip to content

Lua objects implementing the Sender C API can send asynchronous messages

Notifications You must be signed in to change notification settings

lua-capis/lua-sender-capi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Lua Sender C API

The Sender C API can be used to send asynchronous messages to native code running in other threads.

  • Lua objects implementing the Sender C API can send asynchronous messages.
  • Native C code invoking the Sender C API can read the asynchronous messages from any thread.

Lua objects implementing the Sender C API must have an associated meta table entry _capi_sender delivered by the C API function sender_get_capi() and the associated C API function toSender() must return a valid pointer for the given sender object. For further documentation see sender_capi.h.

Implementations:

  • mtmsg buffer objects are implementing the Sender C API. If messages are added to the buffer, native C code can read the message from this buffer by invoking the Sender C API.

Invocations:

License

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

About

Lua objects implementing the Sender C API can send asynchronous messages

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages