Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
20 user(s) are online (14 user(s) are browsing Forum)

Members: 0
Guests: 20

more...

Browsing this Thread:   1 Anonymous Users



« 1 2 (3) 4 5 6 »


Re: pthreads.library

Joined:
2010/5/30 6:01
Group:
Member
Posts: 158
Offline
@serk118uk

My schedule is better, but I'm still a bit too busy - I'm managing to squeeze in a little bit of work here and there to get my dev VM updated, and some test stuff in place, so who knows, perhaps in a few weeks I'll be able to get time to do some actual development again.

Posted on: 2011/10/5 1:54
Transfer the post to other applications Transfer


Re: pthreads.library

Joined:
2010/1/8 10:07
Group:
Member
Posts: 1207
Offline
I am really looking forward to use full pthread librarry on aros as we needed.

meantime i have tryed
http://www.whoosh777.com/pthreads.html
and
ftp://ftp.ossp.org/pkg/lib/pth/pth-2.0.7.tar.gz
and
http://code.google.com/p/pthread-lib/source/browse/
and
win32 port http://www.mirrorservice.org/sites/so ... hreads-w32-2-8-0-release/

and fail to compile under aros.


I hope you find time and Thank you..

Posted on: 2011/10/5 15:28

Edited by serk118uk on 2011/10/6 2:38:19
Edited by serk118uk on 2011/10/6 3:23:43
Edited by serk118uk on 2011/10/6 4:35:38
Edited by serk118uk on 2011/10/6 8:30:06
Transfer the post to other applications Transfer


Re: pthreads.library

Joined:
2011/1/9 3:58
From Germany
Group:
Member
Posts: 24
Offline
I've access to the source code of "NaThreads" [1] a minimal MorphOS native reimplementation of GNU Pth by Rupert Hausberger.

I'll give it a try to port it on my vacation [3 weeks in spain ...]




[1] http://aminet.net/package/dev/misc/nathread

Posted on: 2011/10/12 14:20
Transfer the post to other applications Transfer


Re: pthreads.library

Joined:
2010/1/8 10:07
Group:
Member
Posts: 1207
Offline
Quote:

inermis wrote:
I've access to the source code of "NaThreads" [1] a minimal MorphOS native reimplementation of GNU Pth by Rupert Hausberger.

I'll give it a try to port it on my vacation [3 weeks in spain ...]

[1] http://aminet.net/package/dev/misc/nathread


@inermis
Sounds good and I wish you good luck mate and please report your progress here..

Thanks...


Posted on: 2011/10/13 0:19
Transfer the post to other applications Transfer


Re: pthreads.library

Joined:
2011/1/9 3:58
From Germany
Group:
Member
Posts: 24
Offline
Hmm... A look to the header file would have prevented from wrong expectations... nathreads is a very amigaish implementation its API is not Posix thread compatible at all:

int nathread_thread_init(nathread_thread_t *, struct TagItem *);
void nathread_thread_exit(APTR);
int nathread_thread_join(nathread_thread_tAPTR *);
int nathread_thread_setpriority(nathread_thread_tint);

...

Btw. It uses MorphOS multitasking things that we don't have in AROS:

NewGetTaskAttrs(NULL, &msgsizeof(nathread_thread_msg_t *), TASKINFOTYPE_STARTUPMSGTAG_DONE)


Posted on: 2011/11/9 12:33
Transfer the post to other applications Transfer


Re: pthreads.library

Joined:
2010/1/8 10:07
Group:
Member
Posts: 1207
Offline
Can you not use GetSystemAttr instead and again i could be wrong not sure.

if the code shareable than i am sure someone here who knows more about mos & aros could help porting..

Posted on: 2011/11/10 2:19
Transfer the post to other applications Transfer


Re: pthreads.library

Joined:
2005/4/1 8:40
Group:
Member
Posts: 476
Offline
What MorphOS functionality is missing? I can add one. Please explain this startupmsg thing.

Posted on: 2011/11/10 3:37
Transfer the post to other applications Transfer


Re: pthreads.library

Joined:
2007/10/19 1:51
Group:
Member
Posts: 472
Offline
@SonicAmiga

If you can add NewGetTaskAttrs() with all the stuff from morphos on aros, that will be very nice.

As for TASKINFOTYPE_STARTUPMSG, there is exec.library autodoc from morphos (so you can search all the stuff here). Also, if you can, implement also TASKINFOTYPE_PID for NewGetTaskAttrs() (also described in that exec's autodoc)

Posted on: 2011/11/10 3:52
_________________
my blog: aros/aos4/mos projects & articles

Join us to port dopus5 to amigang platforms here
Transfer the post to other applications Transfer


Re: pthreads.library

Joined:
2011/1/9 3:58
From Germany
Group:
Member
Posts: 24
Offline
@SonicAmiga

Hey this would be really nice! In addition to the autodoc file there is also an example in the MorphOS SDK, see https://gist.github.com/1355321

Also e.g. the MorphOS port of OpenTTD uses these functions, see http://mz.openttdcoop.org/is2/openttd ... _morphos_8cpp-source.html So having this for compatibility would be good.

@serk118uk

Yes, having this it seems that NAThreads could compile out of the box without porting... I will ask the author to release it as Open Source. Have to check this but maybe it is possible to build some kind of Posix compatible wrapper around the NAThread calls... But in fact NAThread is a kind of extension to the MorphOS multitasking features "behaving like Pth in an amigaish way"...


Posted on: 2011/11/10 8:45
Transfer the post to other applications Transfer


Re: pthreads.library

Joined:
2010/1/8 10:07
Group:
Member
Posts: 1207
Offline
Quote:

SonicAmiga wrote:
What MorphOS functionality is missing? I can add one. Please explain this startupmsg thing.


@SonicAmiga
so is it possible?

Posted on: 2011/11/17 4:20
Transfer the post to other applications Transfer



« 1 2 (3) 4 5 6 »



You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Search
Top Posters
1 paolone
paolone
3647
2 nikolaos
nikolaos
3452
3 phoenixkonsole
phoenixkonsole
3006
4 magorium
magorium
2929
5 deadwood
deadwood
2328
6 mazze
mazze
2067
7 clusteruk
clusteruk
2050
8 ncafferkey
ncafferkey
2049
9 damocles
damocles
1769
10 Kalamatee
Kalamatee
1708
© 2004-2014 AROS Exec