SkillAgentSearch skills...

StsQueue

Simple thread safe Queue in C.

Install / Use

/learn @petercrona/StsQueue
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

StsQueue

Simple thread safe Queue in C. Check out main.c to see how it is used. Thread safety comes from using pthread mutex on write/read.

Simulated namespaces in C

What might be interesting is to see how I used a struct to simulate a namespace. Everything except of what I choose to export is "private". This makes it easy to think in terms of modules. The design of a module's interface becomes a separate task, and might thus get more attention than otherwise.

Inspired by: http://stackoverflow.com/questions/389827/namespaces-in-c#answer-389961

View on GitHub
GitHub Stars30
CategoryDevelopment
Updated1y ago
Forks9

Languages

C

Security Score

75/100

Audited on Oct 3, 2024

No findings