haozhang
V2EX  ›  C

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

  •  2
     
  •   haozhang · Apr 27, 2019 · 3292 views
    This topic created in 2755 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
    haozhang
    OP
    Apr 27, 2019
    1
    macosx 上需要#define __APPLE__ 或者编译时 gcc -D__APPLE__。因为 macosx 的 semaphore 有问题...和 c posix 有点不一样= =,所以做了一个条件编译。
    shell314
    shell314
    Apr 28, 2019 via Android
    2
    很棒
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4334 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:08 · PVG 17:08 · LAX 01:08 · JFK 04:08
    ♥ Do have faith in what you're doing.