VILLASframework / node

Connecting real-time power grid simulation equipment
https://fein-aachen.org/projects/villas-node/
Apache License 2.0
13 stars 7 forks source link

Select C-library for common data structures and algorithms #27

Closed stv0g closed 1 year ago

stv0g commented 8 years ago

We should agree on a library for common functions and data structures:

stv0g commented 8 years ago

Little update here: branch feature-pool-queue now contains my own implementation of lockless memory pool, stack and queue.

This is fine for now. But for the future, @umarfaruq and me agreed to have a look at Intels DPDK framework. Maybe we can borrow some even better implementations from them. It depends how hard it is to integrate those into VILLASnode

stv0g commented 8 years ago

@umar.farooq and me started to implement our own version of a simple SPSC (single producer single consumer) queue based on C11's memory model / atomics: https://github.com/stv0g/c11-stdatomic-queue SPSC queues are much simpler than their MPMC (multiple producers multiple consumer) counterparts.

More information about SPSC queues and the theory / pitfalls behind them can be found here:

stv0g commented 8 years ago

I will close this issue as we now implement our own queue.

Let's keep it in mind as a good reference / collection for future work.