Re:Implementing a lightweight task scheduler in C++
by Keyframe on Saturday August 22, 2015 @06:46PM
(#10104065)
Would be nice to see, in contrast, a C implementation.
[ Parent
| on HN ]
Re:Implementing a lightweight task scheduler in C++
by dougbinks on Sunday August 23, 2015 @04:47AM
(#10105051)
The task library enkiTS has a C interface, though this simply wraps the C++ implementation. Writing a C implementation from that interface would be pretty much the same, however the virtual function and inheritance would be replaced by a function pointer and plain struct.