Changeset 2496 in Sophya for trunk/SophyaLib/SysTools/pdlmgr.h


Ignore:
Timestamp:
Feb 3, 2004, 12:05:44 PM (22 years ago)
Author:
ansari
Message:

Implementation propre de la gestion de chargement dynamique (classe PDynLinkMgr) sur MacOSX/Darwin a travers les API NSObjectFileImage et NSModule + petite correction ds zthread.h (deplacement de unlock()) - Reza 3 Fevrier 2004

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/SysTools/pdlmgr.h

    r1900 r2496  
    1313#include <dl.h>
    1414#elif defined(Darwin)
    15 #include </sw/include/dlfcn.h>
     15#include <mach-o/dyld.h>
    1616#else
    1717#include <dlfcn.h>
     
    3535
    3636  virtual DlFunction    GetFunction(string const & funcname);             
     37  inline  DlFunction    GetFunction(const char * funcname)
     38    { string fname = funcname;   return GetFunction(fname); }           
     39
     40  inline  string        GetName() const { return soName; }
    3741
    3842protected :
     
    4347#if defined(HPUX)
    4448  shl_t dlhandle;
     49#elif defined(Darwin)
     50  NSObjectFileImage nsobjfile;
     51  NSModule nsmod;
    4552#else
    4653  void * dlhandle;
    4754#endif
     55  bool dylok;
    4856  string soName;
    4957  bool copy;
Note: See TracChangeset for help on using the changeset viewer.