Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
62 user(s) are online (44 user(s) are browsing Forums)

Members: 0
Guests: 62

more...
Support us!
Recent OS4 Files
OS4Depot.net



« 1 ... 14 15 16 (17)


Re: Opus Magellan source is free now!
Just can't stay away
Joined:
2009/5/1 17:57
From Czech Republic
Posts: 1059
Shouldn't the program ReplyMsg() each message it receives from GetMsg() and only then delete the port? Something like this:

// Close message port
    
if (data->audio_port)
    { 
        
struct Message *msg;

        
// Flush all messages
        
while ( (msg=GetMsg(data->audio_port)) )
         {
          
ReplyMsg(msg);
         }
        
DeleteMsgPort(data->audio_port);
        
data->audio_port NULL;  // this is a pointer so use NULL, not 0!
    
}


_________________
Smoke me a kipper, I'll be back for breakfast!

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon RX 560 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
   Report Go to top

Re: Opus Magellan source is free now!
Just popping in
Joined:
2006/11/27 14:32
From Newcastle-upon-Tyne, UK
Posts: 45
Quote:
anyone can just grab latest svn from branch_v1, build if for yourself and use already with no problems.


Great work Roman, however, I can't seem to build it using my OS X cross-compiler setup, I get a link error:

ppc-amigaos/bin/ldcannot find -lamiga


I'm assuming I'm missing a link library here in my setup, but everything else compiles fine. Does it compile with newlib or with clib?

Again, thanks for your work on this!

BTW, I think Trixie is correct, you should reply to all messages.

   Report Go to top

Re: Opus Magellan source is free now!
Home away from home
Joined:
2006/11/20 16:26
From Norway
Posts: 2740
Yes but you should also prevent new messages from being sent to message port, if you want to prevent any memory leak.

And this normally done whit forbid() and permit(), not really SMP friendly but no alternative to it.

AmigaOS really need a MUTEX based message port system of some sort, to replace the old not so SMP friendly way.

Or maybe something can be done, by adding some kind of status flag into message port, so that this port is not ready to receive messages, but then SendMsg need to be updated so that it might fail or have to wait for it to become ready again.

_________________
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
   Report Go to top

Re: Opus Magellan source is free now!
Home away from home
Joined:
2007/9/11 11:31
From Russia
Posts: 5542
@Trixie,Slash
Yeah, exactly what i think when i found it, check latest post there: https://sourceforge.net/p/dopus5allami ... sion/dev/thread/7ca8bb4f/

@Slash
Quote:

I'm assuming I'm missing a link library here in my setup, but everything else compiles fine. Does it compile with newlib or with clib?


All newlib based, only filetype.module are clib2 based (there was just some moments about using of malloc/free in different process in newlib, so we just go for clib2 which deal with by some luck, and that todo to fix to be all on newlib).

As for -lamiga, its indeed link lib from clib2 (one from SDK53.20), and while we know mixing suck, we still use it (maybe better to get rid of it as well later). We also use -ldebug in some places if i remember right, which also one from clib2 (i read back in past when utilitybase.com was alive, that its ok to newlib code with -ldebug from clib2).

@All
I for now prepare user-archives for first beta test of all native stuff. If not today, then tomorrow should be ready


Edited by kas1e on 2013/9/18 11:18:59
_________________
Join us to improve dopus5!
zerohero's mirror of os4/os3 crosscompiler suites
   Report Go to top

Re: Opus Magellan source is free now!
Just can't stay away
Joined:
2006/11/24 17:54
From Sanremo
Posts: 1809
Great Roman! I look forward to try it and test it! :)

   Report Go to top

Re: Opus Magellan source is free now!
Just can't stay away
Joined:
2006/11/26 16:47
Posts: 1431
Great!!!

   Report Go to top


« 1 ... 14 15 16 (17)



[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project