Code Monkey home page Code Monkey logo

Comments (8)

P-p-H-d avatar P-p-H-d commented on May 22, 2024

As you may have noticed, the last lines of m-buffer are:

// NOTE: SET & INIT_SET are deliberately missing. TBC if it the right way.
// NOTE: There is no oplist defined for this container.

In fact, the queue as a synchronization should be a global variable. so I was thinking if it made sense to encapsulate it into another container? But maybe for tuple, it makes sense and I am overthinking :)

from mlib.

mario-tux avatar mario-tux commented on May 22, 2024

I got several threads that share a bunch of structures (to be accessed in a safe way). They are not defined as global variables as I don't like their use (except when it is strictly necessary): I would define a structure (but I would use a tuples as substitute) that is passed by reference to the thread functions. This means that I would require the SET/INIT_SET methods and the possibility to embed buffers inside another containers. Tell me what do you think about such use and if you are going to implement such possibility. Otherwise I can clearly revert on a classic structure.

from mlib.

P-p-H-d avatar P-p-H-d commented on May 22, 2024

Ok for implementation.

from mlib.

mario-tux avatar mario-tux commented on May 22, 2024

I worried by the presence of the size parameter in the init method of a buffer. How can it be recursively managed by the init method of the container?

from mlib.

P-p-H-d avatar P-p-H-d commented on May 22, 2024

I plan to support only size defined at compilation time (and create a specialized initialize function that takes only the buffer as argument).

from mlib.

P-p-H-d avatar P-p-H-d commented on May 22, 2024

The methods INIT & INIT_SET have been done for the buffer, including the BUFFER oplist.
But I still have a constness issue to solve before considering the ticket as closed.

from mlib.

P-p-H-d avatar P-p-H-d commented on May 22, 2024

It should work now in 'master'.

from mlib.

mario-tux avatar mario-tux commented on May 22, 2024

Yes, it looks to work. Thank you.

from mlib.

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.