1581304415qq / queue Goto Github PK
View Code? Open in Web Editor NEWThis project forked from tobithiel/queue
A small thread-safe queue written in C
License: MIT License
This project forked from tobithiel/queue
A small thread-safe queue written in C
License: MIT License
Queue - thread-safe - ability to define max number of elements - sort elements into queue - get in O(1), except when filtered (worst case O(n)) - put in O(1) when unsorted, in O(n) in the worst case when sorted - MIT license (windows support relies on LGPL licensed pthreads-win32 (http://sourceware.org/pthreads-win32/)) sorted queue: your elements in the queue will be ordered according to the sort function which is given. Build steps: - mkdir build && cd build - cmake .. - make / build VS project under windows Building 32-/64-bit: - OS X: universal binaries are built - Linux: use 'cmake -DBUILT_32=ON ..' to force 32-bit built, -DBUILT_64=ON for 64-bit - Windows: use 'cmake -G "Visual Studio 11 Win64" -DBUILT_64=ON ..' to force a 64-bit build, 'cmake -G "Visual Studio 11" -DBUILT_32=ON ..' for 32-bit TODO: - proper test suite, so that everybody can easily see whats tested and run the tests himself - ability to turn of element counting => only unlimited queue - function to peek at next element error codes: < 0 => error = 0 => okay 0 - everything alright -1 - invalid queue -2 - could not acquire lock -3 - could not allocate memory -4 - no new data allowed -5 - invalid element in queue -6 - invalid callback -7 - max_elements reached or no elements in queue
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.