Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
winbase.h in windows.h #332072
07/07/10 14:57
07/07/10 14:57
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
This is a rather specific request, which I imagine not many users will take advantage of. However, if it's not too much trouble for you guys to implement, I would really appreciate it.

I've been looking into threaded programming (thanks to mercuryus for showing how easy it is to get started). An obviously important part of effective multi-threaded programming is protecting resources accessed by more than one thread. A very simple way of doing this is using the CriticalSection functions in windows.h, but they are useless at the moment since CRITICAL_SECTION is included only in winbase.h. Apparently this is normally included in windows.h, but not in this case.

I'm aware that there are many other headers that are normally included in windows.h, so this may not have priority. However I'm going to go ahead and ask:

Can we please have winbase.h included in windows.h?

Jibb


Formerly known as JulzMighty.
I made KarBOOM!
Re: winbase.h in windows.h [Re: JibbSmart] #332795
07/12/10 08:54
07/12/10 08:54
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
In fact CRITICAL_SECTION is defined in the OS specific library, such as winnt.h. Winbase.h is just a general renaming library.

When you let me know which API functions you want to use, I can include them in windows.h.

Happy birthday, btw.

Re: winbase.h in windows.h [Re: jcl] #332838
07/12/10 13:14
07/12/10 13:14
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Thanks jcl laugh

All the functions related to CRITICAL_SECTION appear to already be there, so I'd say just the CRITICAL_SECTION itself.

Cheers,

Jibb


Formerly known as JulzMighty.
I made KarBOOM!

Moderated by  aztec, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1