Károly Balogh
6afcca7cd3
Amiga-likes: preparations for inclusion of AThreads into the RTL buildprocess
...
git-svn-id: trunk@30923 -
2015-05-28 00:47:35 +00:00
Károly Balogh
21a9b96e7e
amicommon: avoid SysUtils unit and AnsiStrings in AThreads
...
git-svn-id: trunk@30922 -
2015-05-27 22:37:50 +00:00
Károly Balogh
eb692e46d2
amicommon: added ShortString version of SysDebug family of functions
...
git-svn-id: trunk@30921 -
2015-05-27 22:25:22 +00:00
lacak
242d750ef5
fcl-db: sqldb: ExecuteDirect should call StartImplicitTransaction, when Transaction.Options contains stoUseImplicit (else it leads later to AV due to nil Transaction.Handle)
...
git-svn-id: trunk@30920 -
2015-05-27 05:06:01 +00:00
marco
b18365fb61
* part of mantis 028134, shlwapi unit with strlogical*
...
git-svn-id: trunk@30919 -
2015-05-26 17:56:59 +00:00
marco
c402bffc69
* part of mantis 028134, cleanup of NORM_ constants
...
git-svn-id: trunk@30918 -
2015-05-26 17:44:09 +00:00
Károly Balogh
2153420ca4
morphos: also fix MorphOS header erros in RTL
...
git-svn-id: trunk@30917 -
2015-05-25 23:52:09 +00:00
Károly Balogh
4261449aa1
morphunits: fix a field name typo in TMemEntry
...
git-svn-id: trunk@30916 -
2015-05-25 23:03:22 +00:00
Károly Balogh
dfd251f586
morphunits: fixed TMemList declaration in exec, to match AROS, Amiga/m68k, and reality
...
git-svn-id: trunk@30915 -
2015-05-25 22:26:15 +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
Károly Balogh
45ce4538fa
amicommon: more AThreads work
...
- in WaitForThreadTerminate, do not try to wait if the thread already exited
- when debug mode enabled, release the threadvars later, so AnsiString debug messages still work
- do not call DoneThread in EndThread. the threadfunc will call it when exited.
git-svn-id: trunk@30913 -
2015-05-25 19:47:21 +00:00
Károly Balogh
73f451f3d3
amicommon: AThreads improvements
...
- now supports creation of suspended threads
- reworked CriticalSections handling to avoid outside-heap dynamic allocations of mutex space
- allocate threadvars area into the heapPool, this avoids leaking the mainthread threadvar area on exit
- now supports setting thread stacksize in a Delphi-compatible way (by default inherits the stacksize of its parent)
- better subthread naming
git-svn-id: trunk@30912 -
2015-05-25 17:55:43 +00:00
Jonas Maebe
ca5addff8e
* fixed memory leaks introduced in r30908
...
git-svn-id: trunk@30911 -
2015-05-25 15:10:16 +00:00
Jonas Maebe
0f99ae82af
* increased ppu version after r30907
...
git-svn-id: trunk@30910 -
2015-05-25 13:04:36 +00:00
Jonas Maebe
00b68dfd9f
+ test for mantis #16582 (already works with FPC 2.6.4)
...
git-svn-id: trunk@30909 -
2015-05-25 12:55:44 +00:00
Jonas Maebe
caea5ac8be
* record a load node for the self/vmt tree of the current routine in the
...
tcallnode constructor, so that when it's needed later during pass 1,
its value doesn't depend on the context in which pass 1 is executed
(e.g. when inlining) (mantis #18121 )
git-svn-id: trunk@30908 -
2015-05-25 12:55:40 +00:00
Jonas Maebe
6c3f1c3722
* stop tcallnode.pass_1 after we've detected a direct call to a helper/
...
category method, as this may lead to an internalerror later on after
the following commits
git-svn-id: trunk@30907 -
2015-05-25 12:55:37 +00:00
Jonas Maebe
f51b11e969
* implemented tcallnode.create_procvar on top of tcallnode.create
...
git-svn-id: trunk@30906 -
2015-05-25 12:55:34 +00:00
Károly Balogh
c7856d25f8
amicommon: AThreads, a native threadmanager unit, similar to Unix's cthreads
...
- early stage, but tested and works on MorphOS and Amiga/68k (with at least 1 subthread... :)
- basic Threading functions and CriticalSections implemented
- Semaphores, RTLEvents and some other minor bits are still missing
- probably won't support all kinds of crazy hacky code out there. the user code must obey some Amiga-limitations, which come from the way the Amiga works
git-svn-id: trunk@30905 -
2015-05-24 23:07:41 +00:00
Károly Balogh
cfc076832a
MorphOS: deleted sysosh.inc, no longer needed (use the one in amicommon)
...
git-svn-id: trunk@30904 -
2015-05-24 22:56:02 +00:00
Károly Balogh
846dd6b57b
m68k: use the Amiga-specific atomic ops on Amiga
...
git-svn-id: trunk@30903 -
2015-05-24 21:44:51 +00:00
Károly Balogh
f52b039311
Amiga/m68k: made m68kamiga.inc to even compile, and maybe look like if it was Pascal code
...
git-svn-id: trunk@30902 -
2015-05-24 21:43:13 +00:00
Károly Balogh
89aadb22c2
Amiga/m68k: software atomic operations implementation for multithreading
...
git-svn-id: trunk@30901 -
2015-05-24 21:31:13 +00:00
Jonas Maebe
e02e742997
* removed OS check when loading the address of a symbol on AArch64, it's
...
probably the same everywhere
git-svn-id: trunk@30900 -
2015-05-24 16:50:13 +00:00
Károly Balogh
f5bcb011ea
amicommon: properly arbitrate access to the open file list in a multithreaded environment
...
git-svn-id: trunk@30899 -
2015-05-24 12:15:02 +00:00
Jonas Maebe
528b0832c6
* fixed test for Linux/AArch64 (patch by Edmund Grimley Evans)
...
git-svn-id: trunk@30898 -
2015-05-23 21:04:17 +00:00
Jonas Maebe
6185ca8f3c
+ socket and ipc support for Linux/AArch64 (patch by Edmund Grimley Evans)
...
git-svn-id: trunk@30897 -
2015-05-23 21:04:14 +00:00
Jonas Maebe
41e4f7a55a
+ ELF/AArch64 resource handling support (patch by Edmund Grimley Evans)
...
git-svn-id: trunk@30896 -
2015-05-23 21:04:11 +00:00
Jonas Maebe
4fa2edc638
+ Linux/AArch64 RTL support (patch by Edmund Grimley Evans)
...
o uses new generic Linux syscall numbers, used for recent architectures
git-svn-id: trunk@30895 -
2015-05-23 21:04:08 +00:00
Jonas Maebe
3c8068ad0b
+ Aarch64 support in the fpc binary (patch by Edmund Grimley Evans)
...
git-svn-id: trunk@30894 -
2015-05-22 09:25:08 +00:00
Jonas Maebe
8628d50aba
+ Linux/AArch64 compiler support (patch by Edmund Grimley Evans)
...
git-svn-id: trunk@30893 -
2015-05-22 09:25:05 +00:00
michael
4242934edb
* Fixed ftruncate to take 64-bit argument
...
git-svn-id: trunk@30892 -
2015-05-21 07:32:30 +00:00
Jonas Maebe
89418d23e5
* regenerated Makefiles with Linux/AArch64 support
...
git-svn-id: trunk@30891 -
2015-05-20 20:15:10 +00:00
Jonas Maebe
7d16df9bea
+ Linux/AArch64 support in fpmkunit/fpcmake (patch by Edmund Grimley Evans)
...
git-svn-id: trunk@30890 -
2015-05-20 20:14:42 +00:00
Jonas Maebe
095f308935
* changed ELF relocation type to longword, as required for 64 bit targets
...
(patch by Edmund Grimley Evans)
git-svn-id: trunk@30889 -
2015-05-20 17:45:59 +00:00
blikblum
8e9b246042
* Properly set detail sql when master key is null. Issue #11423
...
git-svn-id: trunk@30888 -
2015-05-20 02:15:43 +00:00
blikblum
6542cfe0ad
* Don't fetch all records in detail dataset when master dataset is empty
...
git-svn-id: trunk@30887 -
2015-05-20 01:56:35 +00:00
marcus
ff56b81ad3
AROS: Copy WBArgs to argv so its available for Objpas.ParamStr()
...
git-svn-id: trunk@30886 -
2015-05-19 16:56:20 +00:00
lacak
5b3b1c7dea
fcl-db: sqlite: implement CreateDB/DropDB methods + InitializeSqlite/ReleaseSqlite
...
git-svn-id: trunk@30885 -
2015-05-19 11:29:52 +00:00
lacak
126f94ba41
fcl-db: sqlite: implement CreateDB/DropDB methods
...
git-svn-id: trunk@30884 -
2015-05-19 11:16:39 +00:00
lacak
ab93b0bbe6
fcl-db: sdfdataset: attempt to fix "misaligned data access" error on WinCE / ARM platform. Bug #17871
...
git-svn-id: trunk@30883 -
2015-05-19 08:26:32 +00:00
lacak
8215c485f2
fcl-db: sdfdataset: improved handling of space padded values according to RFC4180:"Spaces are considered part of a field and should not be ignored".
...
Now fields in internal record buffer are always null terminated (also for TFixedFormatDataset) + tests
git-svn-id: trunk@30882 -
2015-05-19 07:29:27 +00:00
lacak
5c9d5cf896
fcl-db: base: TBlobField.GetAsString returns uninitialized Result for blob Size=0. Bug #28113
...
git-svn-id: trunk@30881 -
2015-05-18 06:39:32 +00:00
lacak
d5570fb4c4
fcl-db: base: fix TBlobField.SetBlobType. Bug #28103
...
git-svn-id: trunk@30880 -
2015-05-18 06:04:13 +00:00
Jonas Maebe
b5081d76c6
* since we insert the internal ansistring record types in the symtable of
...
the current module, also search it only there so that it doesn't depend
on the state of the symtablestack (hopefully fixes mantis #28109 )
git-svn-id: trunk@30879 -
2015-05-17 18:11:13 +00:00
florian
b4fc11fe06
* implemented r30870 for all platforms: pass dyn. array parameters like pointer parameters so typically in a register
...
git-svn-id: trunk@30878 -
2015-05-17 12:29:28 +00:00
Jonas Maebe
9b987fde93
* fmShareDenyNone should also take a shared lock (+ test)
...
git-svn-id: trunk@30877 -
2015-05-17 11:08:08 +00:00
Jonas Maebe
be6dc49aa5
* fixed test for Windows (the fact that it worked for Unix was due to a bug
...
in the Unix file locking implementation)
git-svn-id: trunk@30876 -
2015-05-17 11:08:05 +00:00
Jonas Maebe
23254e7ce2
* refactored definition of pthread_mutex_t into single location
...
(pmutext.inc) like for *BSD; fixes the definition of
TRTLCriticalSection for MIPS (and AArch64, as found by
Edmund Grimley Evans)
git-svn-id: trunk@30875 -
2015-05-17 11:08:02 +00:00
Jonas Maebe
0a1b851b5c
- removed commented out MIPS mutex size constants
...
git-svn-id: trunk@30874 -
2015-05-17 11:08:00 +00:00