Poster | Thread |
Xenic
| |
Which threads is which (thread libraries)? Posted on 9-Apr-2008 15:21:11
| | [ #1 ] |
|
|
|
Super Member |
Joined: 2-Feb-2004 Posts: 1246
From: Pennsylvania, USA | | |
|
| I finally decided to D/L & install Tunenet and found this requirement listed in the Tunenet readme:
pthread.library V1.4+ (available from OS4 Depot)
I searched OS4 Depot and found pthreads.lha which contains threads.library 1.4. In my current LIBS: directory I found threads.library 1.5 and pthreads.library 52.2. The v1.5 threads.library is over 1 MB in size while the other 2 are 26kb and 32 kb respectively.
Which is the real thread library and which ones can I get rid of? _________________ X1000 with 2GB memory & OS4.1FE |
|
Status: Offline |
|
|
salass00
| |
Re: Which threads is which (thread libraries)? Posted on 9-Apr-2008 16:28:29
| | [ #2 ] |
|
|
|
Elite Member |
Joined: 31-Oct-2003 Posts: 2707
From: Finland | | |
|
| @Xenic
Delete threads.library 1.4 (as it is an older version) and keep the other two. Until an updated SDK is released most OS4 compiled programs will be using threads.library instead of the newer pthreads.library. |
|
Status: Offline |
|
|
sundown
| |
Re: Which threads is which (thread libraries)? Posted on 9-Apr-2008 20:48:02
| | [ #3 ] |
|
|
|
Elite Member |
Joined: 30-Aug-2003 Posts: 5120
From: Right here... | | |
|
| @salass00
Trouble is, threads.library v1.5 is in the SDK, & most ppl most likely don't have that install, like me. I have the SDK archive, so was able to dig out the 1.5 version without installing.
So why wasn't the 1.5 version uploaded to OS4 Depot? _________________ Hate tends to make you look stupid... |
|
Status: Offline |
|
|
Xenic
| |
Re: Which threads is which (thread libraries)? Posted on 10-Apr-2008 15:24:26
| | [ #4 ] |
|
|
|
Super Member |
Joined: 2-Feb-2004 Posts: 1246
From: Pennsylvania, USA | | |
|
| @salass00
OK. The SDK release is long overdue. It already looks like we'll be stuck with 2 thread libraries in our LIBS: directory. The major developers are using the new one and the rest of us the old one. Thanks for the info.
_________________ X1000 with 2GB memory & OS4.1FE |
|
Status: Offline |
|
|
Xenic
| |
Re: Which threads is which (thread libraries)? Posted on 10-Apr-2008 15:28:36
| | [ #5 ] |
|
|
|
Super Member |
Joined: 2-Feb-2004 Posts: 1246
From: Pennsylvania, USA | | |
|
| @sundown
Quote:
So why wasn't the 1.5 version uploaded to OS4 Depot? |
I think a better question is why the name was changed instead of making the new one backward compatable and use the same name. Now we need both libraries. _________________ X1000 with 2GB memory & OS4.1FE |
|
Status: Offline |
|
|
EntilZha
| |
Re: Which threads is which (thread libraries)? Posted on 29-Apr-2008 9:21:11
| | [ #6 ] |
|
|
|
OS4 Core Developer |
Joined: 27-Aug-2003 Posts: 1679
From: The Jedi Academy, Yavin 4 | | |
|
| @Xenic
threads.library is the publically available pthreads compatible library.
pthread.library is part of OS4.
The reason for the incompatibility is two-fold:
First of all, the threads.library uses structures for some data (like mutexes). That means that future versions would need to keep those (yeah, I know, it was a mistake to use structures in the first place). pthreads.library uses uint32 for those data structures.
Secondly, the new pthreads.library needs kernel support that is only available in the latest update. Therefore, I didn't pull off threads.library from OS4depot since it can still run on earlier OS4 installations.
Sorry for the mess...
_________________ Thomas, the kernel guy
"I don't have a frigging clue. I'm norwegian" -- Ole-Egil
All opinions expressed are my own and do not necessarily represent those of Hyperion Entertainment |
|
Status: Offline |
|
|