Can RCC++ Support threading?

93 views
Skip to first unread message

Leo Cyrule

unread,
Oct 15, 2015, 11:35:18 PM10/15/15
to Runtime-Compiled C++
This is actually a very interesting project, and I'd like to use it in the production of my game engine mixed in with Lua. But I do have a very brief question. Can runtime compiled code work with threading? That is to say code is separated into different threads, and you only need to reload that one particular thread.

Doug Binks

unread,
Oct 16, 2015, 5:07:57 AM10/16/15
to runtimecompi...@googlegroups.com
RCC++ is not intended to be used in a threaded manner, but this doesn't stop RCC++ from being used by programs with threading. For example the articles I've written on my open source threaded task enkiTS scheduler http://www.enkisoftware.com/devlog-enkits.html feature images from my game Avoyd which uses RCC++.

Reloading one thread doesn't make much sense, as the distinction between threads and processes is that threads share the same memory space. I would advise stopping all active tasks/jobs (or threads if using a threading model) before swapping code.

Let me know if you need any help, and do look at enkiTS for your threading needs - I use it alongside RCC++, and might be able to make a sample of how to do that if it's of interest.

On 16 October 2015 at 04:35, Leo Cyrule <tangl...@gmail.com> wrote:
This is actually a very interesting project, and I'd like to use it in the production of my game engine mixed in with Lua. But I do have a very brief question. Can runtime compiled code work with threading? That is to say code is separated into different threads, and you only need to reload that one particular thread.

--
You received this message because you are subscribed to the Google Groups "Runtime-Compiled C++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcpl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Moodie

unread,
Oct 23, 2015, 10:12:37 PM10/23/15
to Runtime-Compiled C++
I've been looking at enkiTS and it looks pretty cool.  I've never used a task scheduler because most computer vision stuff is either sequential or SIMD.  
I would love an example of enkiTS + RCC++ if possible.


To unsubscribe from this group and stop receiving emails from it, send an email to runtimecompiledcplusplus+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages