Comments (2)
sorry, I meant this as "Enhancement" and low priority.
Original comment by [email protected]
on 17 Aug 2009 at 10:26
from ghostplusplus.
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)
- Update ip-to-country.csv file HOT 3
- ghost.cfg? HOT 1
- libgmp not listed in ghost++ linking process.
- !voteend feature HOT 4
- can't join LAN games anymore
- WaitTicks system from r586 causing spoofcheck issues
- Segfault when using -O2 or -O3 but not with -O0 with gcc 4.7.0 HOT 3
- the application is not connecting t battle.net
- div-bot exp system
- Error compiling
- Segmentation Fault (core dump) HOT 2
- Patch for /trunk/default.cfg HOT 1
- ghostplusplus crash (stack corruption) under x86-64 PPC platform. HOT 3
- ip-to country database
- Cannot remember pass cannot access forrum
- traffic issue
- support multithreading
- Error while compiling on Centos6.4 HOT 1
- Cant compile ghost.sh in ghostplusplus HOT 1
- The Google Code project is being closed, please port the source code to GitHub!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghostplusplus.