首页> 外国专利> THREADSAFE USE OF NON-THREADSAFE LIBRARIES WITH MULTI-THREADED PROCESSES

THREADSAFE USE OF NON-THREADSAFE LIBRARIES WITH MULTI-THREADED PROCESSES

机译:带有多线程过程的非线程安全库的线程安全使用

摘要

An apparatus includes a processor and a storage storing instructions causing the processor to determine whether an analysis routine is multi-threaded and calls a library function of a non-threadsafe library, and if so, causes the processor to: instantiate an analysis process for executing the analysis routine on multiple threads; instantiate an instance of the library for execution within a isolated library process; instantiate another instance of the library for execution within another isolated library process; retrieve library metadata providing a function prototype of the library function; employ the function prototype to generate an instance of a bridge routine to enable a call from the analysis routine on a first thread to the library function; employ the function prototype to generate another instance of the bridge routine to enable a call from the analysis routine on a second thread to the library function; and begin execution of the analysis routine.
机译:一种设备,包括处理器和存储指令的存储器,所述指令使处理器确定分析例程是否是多线程的,并调用非线程安全库的库函数,如果是,则使处理器执行以下操作:实例化分析过程以执行多线程分析例程;实例化该库的实例以在隔离的库进程中执行;实例化该库的另一个实例,以便在另一个隔离的库进程中执行;检索提供库功能的函数原型的库元数据;使用函数原型生成桥接例程的实例,以允许从第一个线程上的分析例程调用库函数;使用函数原型来生成桥例程的另一个实例,以使第二线程上的分析例程能够调用库函数;并开始执行分析程序。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号