Git Product home page Git Product logo

tina's Issues

Memory corruption with MSVC

Hello there,
I'm currently implementing tina in my fiber based job library.
It worked fine on OSX but on windows I get a heap corruption when I try to free any coroutine memory that had finished running.

I also tried out the the main.c from this reposatory, this end up with an memory read error when it frees the coroutine.

PS:
I needed to change tina.h in line 191 to what you see below to make it compile

#elif __WIN64__ || defined(_WIN64)

Edit:
In a test I passed memory with overflow protection to tina and it immediately throws an exception when _tina_context is called

MSVC fixes

Two new issues seem to have come up in newer versions of MSVC++:

  • The C99 initializer list style I was using doesn't work anymore. (ex: foo = (bar){.a = 1, .b = 2})
  • It no longer allows casting non-function pointers to function pointers for the asm blob.

Should be fixed via 0e57681

Asynchronous IO

How suitable are coroutines for asynchronous IO?

In particular, what I have in mind is texture caching / loading.

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.