haozhang
V2EX  ›  C

我写了个学习斯坦福《编程范式》课程需要用的多线程库

  •  2
     
  •   haozhang · Apr 27, 2019 · 2990 views
    This topic created in 2591 days ago, the information mentioned may be changed or developed.

    《编程范式》里要用到这个多线程库,我照着课程提供的 api 文档,写了一个多线程库。 给有需要的同学。

    https://github.com/Summerlve/Programming-Paradigms-Execs/tree/master/16/thread_107

    2 replies    2019-04-28 09:38:02 +08:00
    haozhang
        1
    haozhang  
    OP
       Apr 27, 2019
    macosx 上需要#define __APPLE__ 或者编译时 gcc -D__APPLE__。因为 macosx 的 semaphore 有问题...和 c posix 有点不一样= =,所以做了一个条件编译。
    shell314
        2
    shell314  
       Apr 28, 2019 via Android
    很棒
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3692 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 48ms · UTC 10:34 · PVG 18:34 · LAX 03:34 · JFK 06:34
    ♥ Do have faith in what you're doing.