Coder Social home page Coder Social logo

mayank-02 / multithreading-library Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 5.0 680 KB

A lightweight C library based on one-one and many-one model for threading.

License: GNU General Public License v3.0

Makefile 2.56% C 94.46% Shell 2.98%
multithreading synchronization one-to-one many-to-one c spinlock mutex conditional-variables semaphore

multithreading-library's People

Contributors

mayank-02 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

multithreading-library's Issues

make isssue in one one

make is not working in one one. It shows following when make command is run

gcc -I include -g -Wall -fpic -DDEBUG -c src/mthread.c -o obj/mthread.o
src/mthread.c:67:21: error: static declaration of ‘gettid’ follows non-static declaration
   67 | static inline pid_t gettid(void) {
      |                     ^~~~~~
In file included from /usr/include/unistd.h:1218,
                 from src/mthread.c:14:
/usr/include/x86_64-linux-gnu/bits/unistd_ext.h:34:16: note: previous declaration of ‘gettid’ with type ‘__pid_t(void)’ {aka ‘int(void)’}
   34 | extern __pid_t gettid (void) __THROW;
      |                ^~~~~~
make: *** [Makefile:53: obj/mthread.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.