GithubHelp home page GithubHelp logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
sorry, I meant this as "Enhancement" and low priority.

Original comment by [email protected] on 17 Aug 2009 at 10:26

from ghostplusplus.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 12, 2024
Yeah, create a new CCallable class just like the ones in ghostdb.h. Allocate 
it, pass
any data you want the thread to have access to into the object, then copy the
CreateThread function from CGHostDBMySQL and run it on your callable. Store the
callable in a data structure such as a vector somewhere, check it occasionally 
to see
if it's ready, and when it is, delete the callable and free any resources you 
gave it.

Be very careful about not touching the callable before it's ready, and in your 
thread
be very careful about not touching any data you weren't explicitly given from 
within
the callable. Also make sure you don't call any non thread safe functions, of 
which
there are a lot.

I'll look into putting that replay code in a thread soon I think.

Original comment by hogantp on 17 Aug 2009 at 3:14

  • Changed state: Accepted
  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

from ghostplusplus.

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.