File: isthreaded.inc

package info (click to toggle)
mricron 0.20140804.1~dfsg.1-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 13,480 kB
  • ctags: 8,011
  • sloc: pascal: 114,853; sh: 49; makefile: 32
file content (18 lines) | stat: -rwxr-xr-x 421 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//x86-64 GTK2 crashes with progress bars
//GTK2 crashes with threading


{$IFDEF LCLgtk2}
  {$ifndef cpux86_64}
    {$DEFINE SHOWPROG}//SHOWPROG =ShowProgressBar
   {$ENDIF}
{$ELSE}
  {$DEFINE SHOWPROG}//SHOWPROG =ShowProgressBar
{$ENDIF}
{$IFDEF UNIX} //Windows is always threaded
  {$IFDEF LCLgtk2}
    {$DEFINE NoThreads}//NoThreads - single threaded execution
    //GTK2 does not allow threading
  {$ENDIF}
{$ENDIF}