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

📄 cwp4302.htm

📁 Perst开源实时数据库
💻 HTM
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>Perst.Storage.EndThreadTransaction</TITLE><LINK REL=STYLESHEET HREF="../CommentReport.css" TYPE="text/css"></HEAD><BODY topmargin=0 rightmargin=0 leftmargin=0 style="background-image: url(../titletile.jpg); background-repeat:repeat-x; background-position: 0 0;" ><DIV CLASS="PageHeading">Perst.Storage.EndThreadTransaction Function</DIV><DIV CLASS="Description">
End per-thread cooperative transaction with specified maximal delay of transaction
commit. When cooperative transaction is ended, data is not immediately committed to the
disk (because other cooperative transaction can be active at this moment of time).
Instead of it cooperative transaction counter is decremented. Commit is performed
only when this counter reaches zero value. But in case of heavy load there can be a lot of
requests and so a lot of active cooperative transactions. So transaction counter never reaches zero value.
If system crash happens a large amount of work will be lost in this case. 
To prevent such scenario, it is possible to specify maximal delay of pending transaction commit.
In this case when such timeout is expired, new cooperative transaction will be blocked until
transaction is committed.
<P></DIV><IMG src="../GradLeft.jpg" width=7 height=378 alt="" border="0" style="position:absolute; left:10; top:18;z-Index:2"><IMG src="../GradTop.jpg" width=352 height=7 alt="" border="0" align="top" style="position:absolute; left:10; top:18; z-index:1"><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Public void EndThreadTransaction (int)</SPAN></DIV><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20>&nbsp;</TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" >Type</TD><TD CLASS="TableLightLabel" >Name</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc">int</TD><TD CLASS="TableLightDesc">maxDelay</TD><TD CLASS="TableLightDesc">maximal delay in milliseconds of committing transaction.  Please notice, that Perst could 
not force other threads to commit their cooperative transactions when this timeout is expired. It will only
block new cooperative transactions to make it possible to current transaction to complete their work.
If <code>maxDelay</code> is 0, current thread will be blocked until all other cooperative trasnaction are also finished
and changhes will be committed to the database.
</TD><TD width=20>&nbsp;</TD></TR></TABLE><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20>&nbsp;</TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" WIDTH=206>Return</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20>&nbsp;</TD></TR><TR height=20><TD width=20>&nbsp;</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD CLASS="TableLightDesc">void</TD><TD CLASS="TableLightDesc">&nbsp;</TD><TD width=20>&nbsp;</TD></TR></TABLE><DIV CLASS="RemarkHdr"><B>Other overloads:</B><BR></DIV><DIV CLASS="Remarks">Perst.Storage.EndThreadTransaction()</DIV></BODY></HTML>

⌨️ 快捷键说明

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