Commit Graph

454 Commits

Author SHA1 Message Date
Davis King
d31b2a4a17 Changed the future object so that its destructor waits
for any tasks in a thread_pool that use the future to stop
before letting a future go out of scope.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402689
2008-11-30 21:04:35 +00:00
Davis King
504382e11c Fixed typos in spec
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402688
2008-11-30 16:17:13 +00:00
Davis King
b58c05f5e2 Fixed a bug in the measurement functions and also cleaned up the spec.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402687
2008-11-30 13:50:22 +00:00
Davis King
04a5f72459 More code cleanup
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402686
2008-11-29 16:54:00 +00:00
Davis King
45c56bb270 Cleaned up the code more and fully filled out the spec.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402685
2008-11-29 16:10:32 +00:00
Davis King
0b6dad8911 Cleaned up this code a little.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402684
2008-11-29 13:27:03 +00:00
Davis King
42344c5e42 Adding a rough version of the quantum computing simulation code.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402683
2008-11-29 03:32:31 +00:00
Davis King
13cd76065a Clarified the spec for the thread_pool.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402682
2008-11-28 17:13:23 +00:00
Davis King
e1809547df Added some more tests for the thread_pool object.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402681
2008-11-28 16:54:22 +00:00
Davis King
bbf90ce00f Added the ability to use function objects as tasks and also the ability to
set the number of threads in a thread pool to 0.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402680
2008-11-28 16:53:07 +00:00
Davis King
381e450bef Added the ability to bind function objects as well as normal C style functions
and member function pointers.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402679
2008-11-28 16:09:27 +00:00
Davis King
2d3e8dd358 changed code so that it compiles in visual studio
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402678
2008-11-28 03:37:48 +00:00
Davis King
e41954400d Added tests for the thread_pool and future objects.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402677
2008-11-28 02:56:54 +00:00
Davis King
1f896c1fee Changed code to avoid compiler warning.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402676
2008-11-28 02:51:46 +00:00
Davis King
99913d4b7d updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402675
2008-11-28 01:55:37 +00:00
Davis King
0270e5ffa6 Updated the thread_pool example so that it mentions the new futures support.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402674
2008-11-28 01:33:18 +00:00
Davis King
4d47d3d356 Added futures support to the thread_pool object.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402673
2008-11-28 01:18:09 +00:00
Davis King
fd6baebf1b Added some more comments to this example.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402672
2008-11-28 00:11:06 +00:00
Davis King
0b3cf015db Cleaned up a few things
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402671
2008-11-27 14:02:31 +00:00
Davis King
bfd20f98d3 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402670
2008-11-27 03:50:14 +00:00
Davis King
55aa4367e9 Added the bound_function_pointer object.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402669
2008-11-27 02:59:22 +00:00
Davis King
1e6a2f15fd Fixed grammar in comments.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402668
2008-11-27 02:50:45 +00:00
Davis King
562e875867 Fixed a minor bug in how the zoomable_region widget
drew itself after a resize in some cases.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402667
2008-11-21 21:37:21 +00:00
Davis King
7239be49e4 Added comments to clarify when exceptions are thrown since I just changed
the definition of a missing throws block in the library introduction.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402666
2008-11-21 02:59:59 +00:00
Davis King
4cfc9457b4 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402665
2008-11-21 02:57:18 +00:00
Davis King
1297675ed0 Fixed incorrect #include
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402664
2008-11-20 00:10:26 +00:00
Davis King
d8009aac6d updated todo list (as a test)
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402663
2008-11-15 22:14:07 +00:00
Davis King
db93a97b17 updated todo list
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402662
2008-11-15 22:04:13 +00:00
Davis King
3d08c5c035 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402661
2008-11-14 13:57:55 +00:00
Davis King
16e8f9f1bf Changed the fatal_error exception class so that it aborts your program
and prints a message if you try to construct it more than once since
doing so indicates that you ignored the first fatal error.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402660
2008-11-14 12:55:21 +00:00
Davis King
5125bddebe Fixed compile time warning.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402659
2008-11-14 12:53:56 +00:00
Davis King
033c7478d2 Changed the code to suppress a potential compiler warning.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402658
2008-11-14 02:23:57 +00:00
Davis King
1a084013cc made the specs more clear
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402657
2008-11-13 01:18:18 +00:00
Davis King
d55e5cc903 fixed incorrect link
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402656
2008-11-12 22:12:28 +00:00
Davis King
89ce7274c2 Fixed grammar
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402655
2008-11-12 22:07:15 +00:00
Davis King
4aee46138c Changed the makesnapshot script so that it creates an index.html file with
links to the snapshot archives and chm file.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402654
2008-11-11 01:48:39 +00:00
Davis King
4842f50502 made a release
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402652
2008-11-11 00:05:26 +00:00
Davis King
d200a68404 Removed the constructor try/catch blocks from the gui examples
since they don't always compile in visual studio 7.1 and they
would probably confuse most people anyway.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402651
2008-11-10 23:57:03 +00:00
Davis King
3cd43a2c96 - Changed cmake file so that it won't print messages about looking for libpng
- Added some missing #includes to the thread_pool header

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402650
2008-11-10 22:25:36 +00:00
Davis King
0307cb1de6 Fixed some typos in the svd specs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402649
2008-11-10 22:10:59 +00:00
Davis King
1b08adbcad Added overloads for listener::accept() that can take scoped_ptr
objects as well as normal connection pointers.  Also reconciled
the type used for timeouts between the win32 and posix version
of the code.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402648
2008-11-09 21:55:57 +00:00
Davis King
82b16922fd updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402647
2008-11-09 20:56:27 +00:00
Davis King
92a3b38d5f Added a missing text_field::set_style() to the spec file.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402646
2008-11-09 02:21:13 +00:00
Davis King
a4d4d4efda Changed a few things to avoid warnings in visual studio
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402645
2008-11-08 19:15:41 +00:00
Davis King
e236f0ea9e Fixed a typo in the spec for the std_vector_c object.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402644
2008-11-08 00:05:28 +00:00
Davis King
8ebd22a4c2 fixed compiler warning in visual studio
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402643
2008-11-07 23:57:28 +00:00
Davis King
3a082e2aa9 updated the docs
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402642
2008-11-07 02:21:50 +00:00
Davis King
c379e0cc48 Cleaned up the code for converting between hostnames and IP addresses
a little bit.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402641
2008-11-07 02:21:23 +00:00
Davis King
573d043e8d Finished integrating the new svd from Jack Riddle.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402640
2008-11-07 02:19:24 +00:00
Davis King
f6df5ad191 Added missing requires clause.
--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402639
2008-11-07 01:47:21 +00:00