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

📄 changes.html

📁 PTypes是一个扩充了多线程和网络功能的STL库
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<html><!-- #BeginTemplate "/Templates/tmpl.dwt" --><!-- DW6 --><head><!-- #BeginEditable "doctitle" --> <title>PTypes: Changes</title><!-- #EndEditable --> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="styles.css"></head><body bgcolor="#FFFFFF" leftmargin="40" marginwidth="40"><p><a href="../index.html"><img src="title-20.png" width="253" height="39" alt="C++ Portable Types Library (PTypes) Version 2.0" border="0"></a> <hr size="1" noshade><!-- #BeginEditable "body" --> <p class="hpath"><a href="index.html">Top</a>: <a href="intro.html">Introduction</a>: Changes </p><p><br><b>Version 2.0.2</b></p><ul><li>The memory corruption problem with the LinuxThreads library fixed (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=687425&group_id=56008&atid=493273">Problem report</a>).</li><li>Added versions of <span class="lang">ipmessage::receive()</span> that also return the source IP address.</li><li>Added new properties and methods to <span class="lang">inmemory</span> and <span class="lang">outmemory</span> classes to allow reusability of objects of these types. Also cleaned up implementation of <span class="lang">outmemory</span> so that the <span class="lang">increment</span> property is no longer needed.</li><li>Added <span class="lang">textmap::getkey()</span> method.</li><li>Added const versions of <span class="lang">operator[]</span> for <span class="lang">string</span> and <span class="lang">tpodlist</span>.</li><li>Bug fixed in <span class="lang">pexchange()</span> on PowerPC with gcc 3.3 (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=947699&group_id=56008&atid=479024">Bug report</a>) </li><li>Bug fixed in the <span class="lang">string</span> class (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=926569&group_id=56008&atid=479024">Bug report</a>)</li><li>Bugs fixed in the memory stream classes (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=947709&group_id=56008&atid=479024">Bug report1</a>, <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=949025&group_id=56008&atid=479024">Bug report 2</a>)</li></ul><p><b>Version 2.0.1</b></p><ul><li>Bugs fixed in 1.9-compatibility interfaces. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=922470&group_id=56008&atid=479024">Bug report 1</a>, <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=924161&group_id=56008&atid=479024">Bug report 2</a>)</li><li>Bug fixed in wshare. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=923830&group_id=56008&atid=479024">Bug report</a>)</li><li>Some minor fixes in the documentation.</li></ul><p><b>Version 2.0.0</b></p><ul><li>The list class/template family has been redesigned and expanded with new, more flexible interfaces. An overview is given in the <a href="lists.html">Introduction to lists</a>. The old interfaces are preserved in the headers for backward compatibility.</li><li>Ported the library to Cygwin.</li><li>'<span class="lang">make install</span>' copies the header files and the binaries to default system locations.</li><li><span class="lang">Jobqueue</span> and <span class="lang">msgqueue</span> are now protected from overflows by an extra semaphore. If the number of unhandled messages in a queue reaches <span class="lang">limit</span> (a parameter set through the constructor) the post/send operation waits on a semaphore until the queue becomes available again.</li><li>Windows DLLs now called: ptypes20.dll and ptypes20g.dll, generted by MSVC and GCC respectively.</li><li>Added <span class="lang">__stdcall</span> (<span class="lang">ptdecl</span> macro) modifiers for all public functions in the library to be independent from the compiler command-line options on Windows.</li><li>Variant arrays have been optimized for memory usage.</li><li>All classes in the library are now either copyable or non-copyable explicitly.</li><li>The last parameter of <span class="lang">copy()</span> and <span class="lang">del()</span> for strings is now optional.</li><li>Fixed a bug in <span class="lang">instm::seek()</span>. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=910890&group_id=56008&atid=479024">Bug report</a>)</li></ul><p><b>Version 1.9.0</b></p><ul><li>A new class <a href="async.jobqueue.html">jobqueue</a> has been added. As shown in the multithreading examples, it helps to easily implement a thread-pool model.</li><li><a href="async.examples.html">Multithreading examples</a> have been re-written. Example 2 is now a full-featured multithreaded server template with a thread pool.</li><li>Atomic functions for PowerPC have been implemented in the assembly language.</li><li>UNIX shared object naming style has been changed. The shared library is now named libptypes.so.19 (libptypes.19.dylib on MacOS). The shared object now 'remembers' its real name (with the -soname option) for correct linking of user applications. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=881525&group_id=56008&atid=479024">Bug report</a>)</li><li>Windows/MSVC DLL has been renamed to ptypes19.dll because of incompatible changes in the library structures. The DLL built by Dev-C++ has been renamed to ptypes19dc.dll for the same reason and also to avoid clashing with MSVC-generated DLL.</li><li>The multithreaded version of the dynamic string class has been improved.</li><li>A minor performance fixup in <span class="lang">msgqueue::send()</span> - the semaphore is no longer being allocated dynamically.</li><li>The <span class="lang">exceptobj</span> class has been renamed to <span class="lang">exception</span>, <span class="lang">tsemaphore</span> - to <span class="lang">timedsem</span>. The old names are typedef'ed for compatibility with older versions of the library.</li><li>The <span class="lang">message</span> class now uses a portable typedef <span class="lang">pinptr</span> for the <span class="lang">param</span> and <span class="lang">result</span> fields. This allows to use these fields both as integers and pointers when necessary. The <span class="lang">id</span> field can now be in the range <span class="lang">0</span> to <span class="lang">INT_MAX</span>; the internal value <span class="lang">MSG_QUIT</span> is now a negative value.</li><li><span class="lang">Bind()</span> and <span class="lang">bindall()</span> now return values that can be used in call to <span class="lang">poll()</span> and <span class="lang">serve()</span> for <span class="lang">ipserver</span> objects.</li><li><span class="lang">setlength(string&amp;)</span> now returns a <span class="lang">char*</span> value.</li><li>A bug has been fixed in the <span class="lang">trigger</span> class. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=804108&group_id=56008&atid=479024">Bug report</a>)</li><li>The <span class="lang">contains()</span> family of functions has been fixed to correctly handle empty test strings. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=821458&group_id=56008&atid=479024">Bug report</a>)</li><li>The <span class="lang">ins()</span> family of functions has been fixed to correctly handle values of <span class="lang">at</span> beyond the last character of a string. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=834876&group_id=56008&atid=479024">Bug report</a>)</li><li>A bug has been fixed in the internal function <span class="lang">psockname()</span> that caused <span class="lang">get_myport()</span> methods (<span class="lang">ipstream</span> and <span class="lang">ipmessage</span> classes) to return an incorrect value. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=838823&group_id=56008&atid=479024">Bug report</a>)</li><li>Compiler warning (and a potential problem) has been fixed on 64-bit systems. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=782336&group_id=56008&atid=493273">Problem report</a>)</li></ul><p><b>Version 1.8.3</b></p><ul><li>Public header files are now included in the documentation in browsable form (see <a href="htsrc.html">Header files</a>).</li><li>Delete notification mechanism for components, previously undocumented, now described in section <a href="unknown.html">Unknown &amp; Component</a>.</li><li>Variant-to-string typecast problem has been fixed that caused compilation errors with GCC 3.3 (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=782334&group_id=56008&atid=493273">Problem report</a>)</li><li>A problem has been solved that allowed template lists to accept any class type, even if it's not derived from <span class="lang">unknown</span>. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=715928&group_id=56008&atid=493273">Problem report</a>)</li><li>A better explanation of the librarie's policies and philosophy is given in section 'Why use PTypes?' (see <a href="intro.html">Introduction</a>).</li></ul><p><b>Version 1.8.2</b></p><ul><li>The library has been ported to BSD/OS (BSDI). There is also limited support for OpenBSD and NetBSD without makefiles.</li><li>The library now compiles with Visual C/C++ 7.1 (.NET) after considerable changes in <span class="lang">&lt;ptypes.h&gt;</span></li><li>A bug has been fixed in <span class="lang">instm::token()</span> that caused segfaults. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=769428&group_id=56008&atid=479024">Bug report</a>)</li><li>A problem has been fixed in <span class="lang">phost*()</span> functions that caused segfaults on SuSE Linux. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=782329&group_id=56008&atid=479024">Bug report</a>)</li><li>A bug has been fixed in wshare: the plus sign '+' should not be decoded as space in URL components other than query. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=777682&group_id=56008&atid=479024">Bug report</a>)</li></ul><p><b>Version 1.8.1</b></p><ul><li>The following functions have been fixed to be thread-safe on UNIX systems: <span class="lang">phostbyname()</span>, <span class="lang">phostbyaddr()</span>, <span class="lang">phostcname()</span>, <span class="lang">nowstring()</span>, and also <span class="lang">now()</span> and <span class="lang">tzoffset()</span> on MacOS X. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=762224&group_id=56008&atid=479024">Bug report 1</a>, <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=763891&group_id=56008&atid=479024">Bug report 2</a>)</li></ul><p><b>Version 1.8.0</b></p><ul><li>The library now compiles in 3 versions: static single-threaded, static multithreaded and dynamic (shared) multithreaded (see <a href="compiling.html">Compiling</a>). On some platforms single-threaded dynamic strings can be twice as faster than multithreaded. </li><li>New format specifiers for <a href="streams.outstm.html">outstm::putf()</a> introduced: <span class="lang">%a</span> for IP addresses and <span class="lang">%t</span> for timestamps. </li><li>New classes <a href="async.mutex.html">scopelock</a>, <a href="async.rwlock.html">scoperead</a> and <a href="async.rwlock.html">scopewrite</a> added in <span class="lang">pasync.h</span>.</li><li>New conversion functions added <span class="lang">stringtoie()</span> and <span class="lang">stringtoue()</span> (see <a href="string.conversion.html">String conversion</a>).</li><li>A bug has been fixed in <span class="lang">tsemaphore::wait()</span>. This bug affected all platforms except Windows. (<a href="https://sourceforge.net/tracker/index.php?func=detail&aid=755242&group_id=56008&atid=479024">Bug report</a>)</li><li>SO_REUSEADDR problem fixed on Windows. (<a href="https://sourceforge.net/tracker/index.php?func=detail&aid=738829&group_id=56008&atid=479024">Bug report</a>)</li><li>A bug has been fixed in <span class="lang">stringtoi()</span>. (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=757188&group_id=56008&atid=479024">Bug report</a>)</li></ul><p><b>Version 1.7.6</b></p><ul><li>The library now compiles with Dev-C++/MinGW on Windows. Dev-C++ project files have been created for building the static and shared libraries, as well as the demo and testing programs.</li><li>A new file output class called <a href="streams.logfile.html">logfile</a> has been created as a result of a discussion around this <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=712307&group_id=56008&atid=479024">bug report</a>.</li><li><span class="lang">Wshare</span> can now downgrade process privileges (setuid/setgid) on UNIX. Also, file handling and server status report has moved to separate optional modules mod_file.cxx and mod_wstat.cxx.</li><li>A new section has been added in the documentation: <a href="http://www.melikyan.com/ptypes/doc/ext/">Resources</a>. This page can be accessed only on-line on the master server, since changes here may appear more frequently than in the library documentation.</li><li>Bugs have been fixed in <span class="lang">tzoffset()</span> for Windows and Solaris (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=705957&group_id=56008&atid=479024">Bug report 1</a>, <a href="http://sourceforge.net/tracker/index.php?func=detail&aid=709146&group_id=56008&atid=479024">Bug report 2</a>).</li><li>A bug has been fixed in <span class="lang">strmap::strmap()</span> constructor (<a href="http://sourceforge.net/tracker/index.php?func=detail&aid=716000&group_id=56008&atid=479024">Bug report</a>).</li><li>Thread creation routine has been changed on Windows to ensure thread-safety of system static variables (<a href="https://sourceforge.net/tracker/index.php?func=detail&aid=706041&group_id=56008&atid=479024">Bug report</a>).</li></ul><p><b>Version 1.7.5</b></p><ul><li>A <span class="lang">tv_usec</span>-related bug fixed in all socket/pipe waiting 

⌨️ 快捷键说明

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