GithubHelp home page GithubHelp logo

Comments (4)

krakjoe avatar krakjoe commented on August 15, 2024

Unrelated to static access but static declaration, remove static $test ...

When it comes to statics ( which I just added again a couple of days ago ) I'm undecided as to what static should mean, it cannot mean the same in the scope of threading because I cannot gain enough control over static properties to safely read/write them as truly static with respect to a declaration, I think they'll have to be static with respect to a Thread context.

from pthreads.

chibisuke avatar chibisuke commented on August 15, 2024

Ah thx for pointing out the declaration. Missed that one. So its only a problem of declaration and access to statics, not constants.

Well in any "Normal" case (other languages) statics are basically treated the same as globals.
But in this case, if I'm not mistaken the problem of access is the same.

Reguarding the "control" problem.. you could look into the possibility of using a tick function, to gain control over the execution of the threads, and that way also over the statics. Of course I don't know if this would have any sideeffect on other stuff, but might be worth a shot.

from pthreads.

krakjoe avatar krakjoe commented on August 15, 2024

I don't intend to write anything in any scope other than the object, statics don't really fit into that ...

I'm aware what static should mean, but it's just not achievable in this environment, some other meaning will have to be applied, what, as yet I'm unsure ...

from pthreads.

krakjoe avatar krakjoe commented on August 15, 2024

Ok closing this now ...

from pthreads.

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.