NAP
Classes | Public Member Functions | Static Public Member Functions | List of all members
ModuleCache Class Referencefinal

#include <nap/modulecache.h>

Classes

class  Handle
 

Public Member Functions

 ModuleCache (ModuleCache &)=delete
 
ModuleCacheoperator= (const ModuleCache &)=delete
 
 ModuleCache (ModuleCache &&)=delete
 
ModuleCacheoperator= (ModuleCache &&)=delete
 

Static Public Member Functions

static Handle getHandle ()
 

Description

NAP dynamic library module cache. Provides an interface for thread-safe loading of NAP modules in a host process. Call getHandle() to get exclusive access to the cache until the handle is destroyed.

Every NAP project depends on a set of (system / user) modules. This cache ensures that modules with the same module name are sourced only once, which is of importance when multiple NAP projects are executed within the same host process, such as applets within Napkin.

Constructor & Destructor Documentation

◆ ModuleCache() [1/2]

ModuleCache ( ModuleCache )
delete

◆ ModuleCache() [2/2]

ModuleCache ( ModuleCache &&  )
delete

Member Function Documentation

◆ getHandle()

static Handle getHandle ( )
static

◆ operator=() [1/2]

ModuleCache& operator= ( const ModuleCache )
delete

◆ operator=() [2/2]

ModuleCache& operator= ( ModuleCache &&  )
delete