⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 scope.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: scope.so,v 10.12 2007/06/14 17:41:59 bostic Exp $])m4_ref_title(Programmer Notes, m4_db handles,    [m4_db handle @scope, m4_db @free-threaded handles],    program/mt, program/namespace)m4_p([dnlThe m4_db library has a number of object handles.  The following tablelists those handles, their scope, and whether they are free-threaded(that is, whether multiple threads within a process can share them).])m4_tagbeginm4_tag(m4_ref(DbEnv), [dnlThe m4_ref(DbEnv) handle, created by the m4_refT(dbenv_create), refersto a m4_db database environment -- a collection of m4_db subsystems,log files and databases.  m4_ref(DbEnv) handles are free-threaded ifthe m4_ref(DB_THREAD) flag is specified to the m4_refT(dbenv_open) whenthe environment is opened.  The handle should not be closed while anyother handle remains open that is using it as a reference (for example,m4_ref(Db) or m4_ref(DbTxn)).  Once either the m4_ref(dbenv_close) orm4_refT(dbenv_remove)s are called, the handle may not be accessed again,regardless of the method's return.])m4_tag(m4_ref(DbTxn), [dnlThe m4_ref(DbTxn) handle, created by the m4_refT(txn_begin), refers toa single transaction.  The handle is not free-threaded.  Transactionsmay span threads, but only serially, that is, the application mustserialize access to the m4_ref(DbTxn) handles.  In the case of nestedtransactions, since all child transactions are part of the same parenttransaction, they must observe the same constraints. That is, childrenmay execute in different threads only if each child executes serially.m4_p([dnlOnce the m4_ref(txn_abort) or m4_refT(txn_commit)s are called, thehandle may not be accessed again, regardless of the method's return.In addition, parent transactions may not issue any m4_db operationswhile they have active child transactions (child transactions thathave not yet been committed or aborted) except for m4_ref(txn_begin),m4_ref(txn_abort) and m4_ref(txn_commit).])])m4_tag(m4_ref(DbLogc), [dnlThe m4_ref(DbLogc) handle refers to a cursor into the log files.  Thehandle is not free-threaded.  Once the m4_refT(logc_close) is called,the handle may not be accessed again, regardless of the method'sreturn.])m4_tag(m4_ref(DbMpoolFile), [dnlThe m4_ref(DbMpoolFile) handle refers to an open file in the sharedmemory buffer pool of the database environment.  The handle is notfree-threaded.  Once the m4_refT(memp_fclose) is called, the handle maynot be accessed again, regardless of the method's return.])m4_tag(m4_ref(Db), [dnlThe m4_ref(Db) handle, created by the m4_refT(dbh_create), refers to asingle m4_db database, which may or may not be part of a databaseenvironment.  m4_ref(Db) handles are free-threaded if them4_ref(DB_THREAD) flag is specified to the m4_refT(dbh_open) when thedatabase is opened or if the database environment in which the databaseis opened is free-threaded.  The handle should not be closed while anyother handle that refers to the database is in use; for example,database handles should be left open while cursor handles into thedatabase remain open, or transactions that include operations on thedatabase have not yet been committed or aborted.  Once them4_ref(dbh_close), m4_ref(dbh_remove), or m4_refT(dbh_rename)s arecalled, the handle may not be accessed again, regardless of the method'sreturn.])m4_tag(m4_ref(Dbc), [dnlThe m4_ref(Dbc) handle refers to a cursor into a m4_db database.  Thehandle is not free-threaded.  Cursors may span threads, but onlyserially, that is, the application must serialize access to them4_ref(Dbc) handles.  If the cursor is to be used to perform operationson behalf of a transaction, the cursor must be opened and closed withinthe context of that single transaction.  Once m4_ref(dbc_close) has beencalled, the handle may not be accessed again, regardless of themethod's return.])m4_tagendm4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -