File: isthreaded.inc

package info (click to toggle)
mricron 0.20140804.1~dfsg.1-3
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 13,508 kB
  • sloc: pascal: 114,876; sh: 49; makefile: 35
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}