svenbarth
dc5d9c7001
rtl/objpas/classes/classes.inc, TThread:
...
* Synchronize: fill the syncentry using the correct size
git-svn-id: trunk@33879 -
2016-06-02 18:48:41 +00:00
svenbarth
d5cc59c22e
Avoid the creation of a TExternalThread instance for Synchronize() and Queue() (Delphi does the same).
...
Note: the Sender parameter of WakeMainThread will be Nil for such threads. This is Delphi compatible.
rtl/objpas/classes/classesh.inc, TThread:
+ TThreadQueueEntry: new field ThreadID so that entries with Thread = Nil can be removed
rtl/objpas/classes/classes.inc, TThread:
* InitSynchronizeEvent: setup ThreadID field
* Synchronize: use a local TThreadQueueEntry if no TThread instance was passed in
* Queue: setup ThreadID
* RemoveQueueEvents: also check for ThreadID when trying to find the current thread
git-svn-id: trunk@33863 -
2016-05-31 20:01:52 +00:00
michael
10bbfce412
* Allow Find to work with user-sorted stringlists.
...
git-svn-id: trunk@33328 -
2016-03-26 09:13:27 +00:00
marco
eb1d895718
* fix reexport of record types in classesh, bug #29776 patch by Ondrej.
...
git-svn-id: trunk@33144 -
2016-03-04 10:42:40 +00:00
michael
789b80f702
* ExecuteInThread added
...
git-svn-id: trunk@33100 -
2016-02-16 18:59:35 +00:00
michael
ae3b0eab2a
* Fix stringlist addstrings so virtual method is preserved (bug id 0029630)
...
git-svn-id: trunk@33099 -
2016-02-16 18:59:01 +00:00
michael
db19d73ec0
* Add ClearFirst parameter to AddStrings (bug ID 29630)
...
git-svn-id: trunk@33092 -
2016-02-13 11:03:51 +00:00
michael
9157a11b7e
* Applied partial patch from barlone to change var->out for IdentToInt
...
git-svn-id: trunk@32825 -
2016-01-01 17:37:46 +00:00
michael
6b3b3d5c0c
* Fix bug ID #29155 , wrong declaration of ISTream.
...
git-svn-id: trunk@32820 -
2016-01-01 16:35:38 +00:00
michael
4f82d103af
* Added SkipLastLineBreak to TStrings (bug ID 28213)
...
git-svn-id: trunk@32792 -
2015-12-29 18:48:58 +00:00
michael
0042e1d3b8
* Fix bug #29150
...
git-svn-id: trunk@32765 -
2015-12-27 17:07:31 +00:00
marco
5dcf5a95c5
* move beginupdate before try 3x , Mantis #29164
...
git-svn-id: trunk@32630 -
2015-12-10 19:21:16 +00:00
marco
aa33a9509f
* added try..finally to beginupdate/endupdate, mantis #29165
...
git-svn-id: trunk@32629 -
2015-12-10 19:19:25 +00:00
michael
7d2c723a54
* Re-instated initialization of memory when adding item
...
git-svn-id: trunk@32332 -
2015-11-15 18:24:12 +00:00
michael
d00d64021b
* Clear memory correctly when setting capacity (bug id 28928)
...
git-svn-id: trunk@32327 -
2015-11-15 11:15:25 +00:00
michael
e6b86d9b5b
* Made string in stringstream constructor optional
...
git-svn-id: trunk@32326 -
2015-11-15 11:05:19 +00:00
michael
61969710c3
* Writebuffer too (Fix bug 28796streams.inc
...
git-svn-id: trunk@31986 -
2015-10-09 06:57:05 +00:00
michael
2c24153736
* Fix bug #28796
...
git-svn-id: trunk@31982 -
2015-10-08 19:06:04 +00:00
michael
aa3a7b7eb8
* Exit find if not sorted (bug id 28774)
...
git-svn-id: trunk@31941 -
2015-10-04 08:07:51 +00:00
yury
7c62aadf65
* Fixed string conversion warnings in RTL.
...
git-svn-id: trunk@31752 -
2015-09-17 17:25:57 +00:00
yury
e1a0b1204a
* Removed unused vars in RTL.
...
git-svn-id: trunk@31750 -
2015-09-17 16:48:53 +00:00
michael
e5fba07668
* Fix bug #0028486
...
git-svn-id: trunk@31299 -
2015-08-07 12:00:40 +00:00
svenbarth
b0fa341006
Fix for Mantis #28271 .
...
rtl/objpas/classes/classes.inc:
+ new variable ExternalThreadsCleanup to keep track whether ExternalThreads list is currently cleared
* TExternalThread.Create: add the thread instance to the external thread list
* TExetrnalThread.Destroy: remove the thread instance from the external thread list (if not in system cleanup anyway)
* CommonCleanup: set ExternalThreadsCleanup to true so that the threads don't remove themselves from the list anymore
+ added test
git-svn-id: trunk@31028 -
2015-06-12 13:39:31 +00:00
Károly Balogh
1a53f6a799
AROS: in agreement with Marcus Sackrow, AThreads is now enabled for AROS, and the old AROS-specific threading implementation is zapped
...
git-svn-id: trunk@31008 -
2015-06-07 18:35:50 +00:00
Károly Balogh
cdea58317e
classes: since AThreads supports suspended thread creation, enable resume code in AfterConstruction for Amiga-like platforms too
...
git-svn-id: trunk@30941 -
2015-05-31 09:37:43 +00:00
Károly Balogh
632c46bcb6
amicommon: have a generic tthread.inc which even works, given there is a reasonably advanced ThreadManager
...
git-svn-id: trunk@30914 -
2015-05-25 21:06:53 +00:00
michael
27ff4c95e4
* Made CheckBitIndex protected
...
git-svn-id: trunk@30622 -
2015-04-17 16:53:23 +00:00
michael
910a88122f
* Implemented TWriter.WriteSignature/TReader.ReadSignature (bug ID 27519)
...
git-svn-id: trunk@30367 -
2015-03-29 13:25:12 +00:00
michael
0304b5f1e9
* Copy LineBreak during TStrings.Assign
...
git-svn-id: trunk@30302 -
2015-03-24 08:47:49 +00:00
michael
063d7f1ce2
* Overloaded version of TStrings.Add that accepts Fmt,Args
...
git-svn-id: trunk@30301 -
2015-03-24 08:47:14 +00:00
michael
e3111faa2e
* Implemented LineBreak property for TStrings
...
git-svn-id: trunk@30300 -
2015-03-24 08:38:52 +00:00
michael
5f5883695d
* Fix bug #26954
...
git-svn-id: trunk@30292 -
2015-03-23 16:50:31 +00:00
michael
af9798c761
* MOve update of threadqueuetail to critical section
...
git-svn-id: trunk@30159 -
2015-03-10 08:12:39 +00:00
michael
0b52513c18
* Fix for bug ID #27628
...
git-svn-id: trunk@30153 -
2015-03-09 19:38:26 +00:00
Tomas Hajny
590e2f7977
* fix for bug #16884 for OS/2
...
git-svn-id: trunk@29712 -
2015-02-15 19:39:53 +00:00
Jonas Maebe
77c1364713
* replaced use of semaphores in Unix version of TThread for suspend/resume
...
functionality with RTLEvent:
o the thread manager semaphore functionality isn't used for anything else,
and the main difference between mutex/condvar and semaphores is that the
latter can be used for IPC (while the thread manager is always used
within a single process) and that they are counting (but since a thread
can only suspend itself nowadays, it cannot be suspended recursively)
o OS X sandboxing does not support the use of semaphores (or rather: Apple
does not allow sandboxing rules that enable the use of IPC semaphores in
the appstore)
git-svn-id: trunk@28965 -
2014-11-02 15:00:24 +00:00
Jonas Maebe
79a40547ca
- removed no longer used tthread.FSuspendedExternal
...
git-svn-id: trunk@28963 -
2014-11-02 15:00:14 +00:00
marcus
980abaa9ba
AROS: introduced threading without additional library
...
git-svn-id: trunk@28682 -
2014-09-16 19:32:56 +00:00
michael
71a1628303
* Fix bug #24645
...
git-svn-id: trunk@28661 -
2014-09-14 16:17:25 +00:00
michael
beafc9fe8c
* Fix bug #26717
...
git-svn-id: trunk@28659 -
2014-09-14 15:06:34 +00:00
Károly Balogh
e89669bedc
rewrite SpinLock to still work without the need to accidentally disable optimizations for a large part of the classes unit
...
git-svn-id: trunk@27864 -
2014-06-06 11:05:57 +00:00
pierre
d4368c55b9
Fix windows problem with FindResource function
...
git-svn-id: trunk@27782 -
2014-05-14 06:11:53 +00:00
michael
ddf6de1b29
* Implemented ReadComponentRes(ex) for bug #21785
...
git-svn-id: trunk@27777 -
2014-05-11 18:28:50 +00:00
michael
1d9ac3aa9e
* Fixed bug #26053
...
git-svn-id: trunk@27770 -
2014-05-11 13:28:00 +00:00
michael
66f711ad09
* Fixed bug ID #26070
...
git-svn-id: trunk@27767 -
2014-05-11 12:12:12 +00:00
nickysn
015c7e951a
* Changed the default packset setting to 1 and disabled the padding of 3-byte
...
sets to 4 bytes on 16 and 8-bit CPUs. This is compatible with Turbo Pascal 7
and Delphi 1.
git-svn-id: trunk@27140 -
2014-03-14 23:51:14 +00:00
nickysn
9418fa9b8b
* fixed compilation of unit classes with integer=smallint
...
git-svn-id: trunk@27045 -
2014-03-09 14:21:32 +00:00
nickysn
fec4c6a6e2
* various rtl fixes that allow objpas.integer to be 16-bit on 16-bit targets
...
(still not sure if it's a good idea, but trying, at least, is harmless - we
can always rollback to integer being equal to longint)
git-svn-id: trunk@26966 -
2014-03-06 01:10:18 +00:00
michael
a1252febae
* Make sure UpdateCount=0 when inherited destructor is called (and ooFree is dispatched (Bug ID 25821)
...
git-svn-id: trunk@26960 -
2014-03-05 09:22:19 +00:00
michael
15bb6b2c72
* Patch from Luiz Americo to make fpobserver notifications take care of begin/endupdate (Bug ID 25820)
...
git-svn-id: trunk@26959 -
2014-03-05 09:15:30 +00:00