MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Pages: 1

LuoXiaoDi
MAME Fan
Reged: 02/21/14
Posts: 9
Send PM


MAME如何启用 810;个线程?
#323901 - 03/29/14 08:11 AM Attachment: 20119135785619280.png 11 KB (1 downloads)


注意通过OSD,而不是直接使用pthread.h

[ATTACHED IMAGE]

Attachment

Edited by LuoXiaoDi (03/29/14 08:18 AM)



MooglyGuy
Renegade MAME Dev
Reged: 09/01/05
Posts: 2258
Send PM


Re: MAME如何启用 810;个线程? new [Re: LuoXiaoDi]
#324004 - 04/01/14 09:51 AM


請說英語。這裡沒有人會說國語。也許對你很難, 但我們可以理解壞英語.

Please only speak English on this forum. Nobody here knows Chinese. It may be difficult for you, but we can understand bad English better than good Chinese.

Translation of Luo's post (courtesy of a Chinese friend):

"How do I use/enable 810 in MAME thread?"
Notice/warning come through OSD, instead of using pthhread.h"



R. Belmont
Cuckoo for IGAvania
Reged: 09/21/03
Posts: 9714
Loc: ECV-197 The Orville
Send PM


Re: MAME如何启用 810;个线程? new [Re: MooglyGuy]
#324021 - 04/01/14 05:10 PM


> "How do I use/enable 810 in MAME thread?"
> Notice/warning come through OSD, instead of using pthhread.h"

810 what? Like Intel 810 integrated graphics?



etabeta
Reged: 08/25/04
Posts: 2036
Send PM


Re: MAME如何启用 new [Re: R. Belmont]
#324026 - 04/01/14 06:19 PM


> > "How do I use/enable 810 in MAME thread?"
> > Notice/warning come through OSD, instead of using pthhread.h"
>
> 810 what? Like Intel 810 integrated graphics?

from the pthread mention, I would have guessed it has something to do with using pcap comms at driver level...
not sure if there are legit applications for such a thing (nor if it is actually possible in the emulator)

I don't know how to fit this guess with the post subject, though...



lxd
MAME Fan
Reged: 02/27/14
Posts: 25
Send PM


Re: MAME如何启用 new [Re: etabeta]
#324261 - 04/08/14 03:38 AM


810 is Chinese Code "多" auto change to the number.

In English Code "多" same as "mutil".

Edited by lxd (04/08/14 03:41 AM)



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4461
Loc: Melbourne, Australia
Send PM


Re: MAME如何启用 new [Re: lxd]
#324283 - 04/08/14 11:45 AM


> 810 is Chinese Code "多" auto change to the number.
>
> In English Code "多" same as "mutil".

Oh, so you want to know how to use multi-threading using the MAME primitives, rather than calling pthread APIs directly? Maybe you could look at something like Aaron's triangle rasteriser code that uses the scalable locks and work queues. There's also multi-threding in chdman. Someone who's been more active in MAME development lately might be more helpful.



lxd
MAME Fan
Reged: 02/27/14
Posts: 25
Send PM


Re: MAME如何启用 new [Re: Vas Crabb]
#324571 - 04/12/14 08:02 AM


I can use multi-threading in the MAME game driver.

But It dose net work well with OSD.

If I use "pthread_create(&m_thread, NULL, i_recv, NULL);" it can be made with
"make".

BUT can not be made with
"make MSVC_BUILD=1 DEBUG=1 SYMBOLS=1"

Edited by lxd (04/12/14 08:03 AM)



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4461
Loc: Melbourne, Australia
Send PM


Re: MAME如何启用 new [Re: lxd]
#324577 - 04/12/14 01:23 PM


Create:
osd_thread *m_thread = osd_thread_create(i_recv, NULL);

Join:
osd_thread_wait_free(m_thread);



lxd
MAME Fan
Reged: 02/27/14
Posts: 25
Send PM


Re: MAME如何启用 new [Re: Vas Crabb]
#324588 - 04/12/14 06:10 PM


Thank you!


Pages: 1

MAMEWorld >> Programming
View all threads Index   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Pi 
0 registered and 23 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 4323