Library: ThreadSync

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Library: ThreadSync

Post by tinman »

It's an early beta/demo of a library I am working on to allow communication and synchronisation between threads. Semaphores works, more planned. Anyone willing to help is appreciated.

Get it from my site: http://www.david-mcminn.co.uk
Or the resources site (soon): http://www.reelmediaproductions.com/pb
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

yes please!

Post by Fangbeast »

Okay, so you got me drooling:)
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post by dmoc »

Cheers tinman, I'll probably be able to put it to some good use in the next few days. I'll let you know how I get on.
mp303

Post by mp303 »

I'm not sure I get it ... it's a windows-specific library? ... well, what's the point? I mean, you've already got access to the API functions, so..?

Unless of course you plan to port it to Linux? that would rock :)
Doobrey
Enthusiast
Enthusiast
Posts: 218
Joined: Sat Apr 26, 2003 4:47 am
Location: Dullsville..population: me
Contact:

Post by Doobrey »

mp303 wrote:I'm not sure I get it ... it's a windows-specific library? ... well, what's the point? I mean, you've already got access to the API functions, so..?
Why use PB`s OpenWindow command when you`ve got the API function CreateWindowEx_, why use the built in networking code when you have access to the Winsock commands etc etc...

Simple answer... Cos PB is a Basic language, and user libs such as Tinman`s ThreadLib make life a lot easier by wrapping a load of API stuff into a simple keyword..

Rant over, nice work David.
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Post by tinman »

mp303 wrote:Unless of course you plan to port it to Linux? that would rock :)
I would but I don't have:

a) Linux running on my machine yet
b) Development experience in Linux

Obviously I would like to be able to do a Linux version, but it will either take some time or will need to be done by someone else. But I agree for the most part that single OS user libs are a bit pointless.
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Not for users that use that single OS :-)

Excellent work tin!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Post Reply