From: Rick M. <obj...@gm...> - 2008-01-28 16:44:21
|
We actually already have the code for the semaphore written. The problem I'm trying to deal with here is more one of restructuring our build to deal with the fact that there's a level of code sharing going on that we've never had to deal with before. The Windows build (which is held together with bubblegum and baling wire) could handle it ok. The autoconf processing, if I recall correctly, had a few more issues dealing with that sort of structure. Rick On Jan 28, 2008 11:39 AM, Mike Cowlishaw <MF...@uk...> wrote: > > One of the things that David Ashley and I were attempting to do in > > the now abandoned 4.0 code base was create some abstraction classes > > for some of the system resources required by the interpreter. The > > biggest of these were mutex semaphores and event semaphores. These > > are replaced by a set of classes with a common interface that get > > compiled into the code. We wrote one set for Windows and a second > > set for Unix. The semaphore classes were actually based on the ones > > that already exist for the unix code base, but the class instance > > nature of these replaced the existing C macro-based abstraction. > > > > Part of the idea behind these abstractions were to use them in all > > of the places where this type of system facility is required. Doing > > this will allow us to increase the amount of code that's in common > > between Windows/Unix. In particular, we'll be able to get a lot > > more common code in place for the rxapi daemon. Since the current > > amount of shared code in that area is zero, this would be a very > > good thing indeed. > > Hmm, I've been going down a similar path for GoServe .. a simplified API > for threading and mutexes that did all I needed to do. It's implemented > on Windows and Linux using macros, which map to Windows API for Windows > and pthreads for Linux (basically because those are the models ooRExx uses > on the two platforms). > > It's pretty simple and maybe not fully-featured enough for what you need, > but I'll happily send if you want to take a look. > > Mike > > > > > > Unless stated otherwise above: > IBM United Kingdom Limited - Registered in England and Wales with number > 741598. > Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU > > > > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Oorexx-devel mailing list > Oor...@li... > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > |