Coder Social home page Coder Social logo

Comments (4)

winlinvip avatar winlinvip commented on June 11, 2024

UTest and coverage for ST is introduced by SRS#1b2822a5a4, of course, it'll be merged to this repository if done.

image

from state-threads.

winlinvip avatar winlinvip commented on June 11, 2024

对ST做了大幅度简化:eda23b2

For #19: Simplify ST, only support LINUX and DARWIN

1. Remove examples and extensions.
2. Remove OS support, except LINUX and DARWIN.
3. Rename md.S to md_linux.S, remove __ia64__ support.
4. Remove events support, except kqueue and epoll.
5. Refine utest, add auto/fast.sh support.

简化前,一共是9123行,核心代码5834行:

homeMacOS:state-threads winlin$ wc -l *.h *.c *.S 
     480 common.h
     645 md.h
     176 public.h
    1446 event.c
     922 io.c
     121 key.c
     783 sched.c
     173 stk.c
     368 sync.c
     644 md.S
      76 md_darwin.S
    5834 total

简化后,核心代码4448行:

homeMacOS:state-threads winlin$ wc -l *.h *.c *.S 
     473 common.h
     232 md.h
     174 public.h
     913 event.c
     815 io.c
     121 key.c
     751 sched.c
     173 stk.c
     368 sync.c
      76 md_darwin.S
     352 md_linux.S
    4448 total

一共简化了1386行代码,23%左右代码。简化后,UTest和覆盖的难度降低了,之前存在大量无法覆盖的代码。

简化后,只支持LINUX和DARWIN平台,事件框架只支持kqueue和epoll。

from state-threads.

winlinvip avatar winlinvip commented on June 11, 2024

ST: Support thread-local for multiple threads.

from state-threads.

winlinvip avatar winlinvip commented on June 11, 2024

多线程的单元测试,单独提了一个issue #31

from state-threads.

Related Issues (20)

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.