drivers/can_copcican_win32/can_copcican_win32.vc10.vcxproj
author Robert Lehmann <robert.lehmann@sitec-systems.de>
Tue, 28 Jul 2015 16:36:55 +0200
changeset 793 72e9e1064432
parent 731 c4793e10e04f
permissions -rw-r--r--
timers_unix: Fix termination problem of WaitReceiveTaskEnd

The function pthread_kill sends the Signal thread and to the own process.
If you use this construct than the application which calls uses the
canfestival api will terminate at the call of canClose. To avoid that
use pthread_cancel instead of pthread_kill. To use the pthread_cancel call
you need to set the cancel ability in the thread function. That means
you need to call pthread_setcancelstate and pthread_setcanceltype.
For the termination of the thread at any time it is important to set the
cancel type to PTHREAD_CANCEL_ASYNCHRONOUS.
629
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     1
<?xml version="1.0" encoding="utf-8"?>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     2
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     3
  <ItemGroup Label="ProjectConfigurations">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     4
    <ProjectConfiguration Include="Debug|Win32">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     5
      <Configuration>Debug</Configuration>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     6
      <Platform>Win32</Platform>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     7
    </ProjectConfiguration>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     8
    <ProjectConfiguration Include="Release|Win32">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
     9
      <Configuration>Release</Configuration>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    10
      <Platform>Win32</Platform>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    11
    </ProjectConfiguration>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    12
  </ItemGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    13
  <PropertyGroup Label="Globals">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    14
    <ProjectGuid>{A18C416F-3CBB-4744-BA24-FA5C5F3CBE0D}</ProjectGuid>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    15
    <Keyword>Win32Proj</Keyword>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    16
    <RootNamespace>can_copcican_win32</RootNamespace>
708
1e0a91978826 can_copican_win32:
Christian Taedcke <hacking@taedcke.com>
parents: 629
diff changeset
    17
    <ProjectName>can_copcican_win32</ProjectName>
629
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    18
  </PropertyGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    19
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    20
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    21
    <ConfigurationType>DynamicLibrary</ConfigurationType>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    22
    <UseDebugLibraries>true</UseDebugLibraries>
731
c4793e10e04f VS2010 project files:
Christian Taedcke <hacking@taedcke.com>
parents: 708
diff changeset
    23
    <CharacterSet>MultiByte</CharacterSet>
629
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    24
  </PropertyGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    25
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    26
    <ConfigurationType>DynamicLibrary</ConfigurationType>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    27
    <UseDebugLibraries>false</UseDebugLibraries>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    28
    <WholeProgramOptimization>true</WholeProgramOptimization>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    29
    <CharacterSet>Unicode</CharacterSet>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    30
  </PropertyGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    31
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    32
  <ImportGroup Label="ExtensionSettings">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    33
  </ImportGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    34
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    35
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    36
  </ImportGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    37
  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    38
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    39
  </ImportGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    40
  <PropertyGroup Label="UserMacros" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    41
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    42
    <LinkIncremental>true</LinkIncremental>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    43
  </PropertyGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    44
  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    45
    <LinkIncremental>false</LinkIncremental>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    46
  </PropertyGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    47
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    48
    <ClCompile>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    49
      <PrecompiledHeader>Use</PrecompiledHeader>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    50
      <WarningLevel>Level3</WarningLevel>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    51
      <Optimization>Disabled</Optimization>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    52
      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;CAN_COPCICAN_WIN32_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    53
      <AdditionalIncludeDirectories>$(SolutionDir)\include;$(SolutionDir)\include\win32;$(SolutionDir)\..\driver_windows\Cosateq_4Port_CAN_SDK\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    54
    </ClCompile>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    55
    <Link>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    56
      <SubSystem>Windows</SubSystem>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    57
      <GenerateDebugInformation>true</GenerateDebugInformation>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    58
      <AdditionalDependencies>$(SolutionDir)\..\driver_windows\Cosateq_4Port_CAN_SDK\lib\co_can_lib.lib;%(AdditionalDependencies)</AdditionalDependencies>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    59
      <ModuleDefinitionFile>can_copcican_win32.def</ModuleDefinitionFile>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    60
    </Link>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    61
  </ItemDefinitionGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    62
  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    63
    <ClCompile>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    64
      <WarningLevel>Level3</WarningLevel>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    65
      <PrecompiledHeader>Use</PrecompiledHeader>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    66
      <Optimization>MaxSpeed</Optimization>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    67
      <FunctionLevelLinking>true</FunctionLevelLinking>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    68
      <IntrinsicFunctions>true</IntrinsicFunctions>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    69
      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;CAN_COPCICAN_WIN32_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    70
    </ClCompile>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    71
    <Link>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    72
      <SubSystem>Windows</SubSystem>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    73
      <GenerateDebugInformation>true</GenerateDebugInformation>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    74
      <EnableCOMDATFolding>true</EnableCOMDATFolding>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    75
      <OptimizeReferences>true</OptimizeReferences>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    76
      <ModuleDefinitionFile>can_copcican_win32.def</ModuleDefinitionFile>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    77
    </Link>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    78
  </ItemDefinitionGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    79
  <ItemGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    80
    <None Include="can_copcican_win32.def" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    81
    <None Include="ReadMe.txt" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    82
  </ItemGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    83
  <ItemGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    84
    <ClInclude Include="stdafx.h" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    85
    <ClInclude Include="targetver.h" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    86
  </ItemGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    87
  <ItemGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    88
    <ClCompile Include="can_copcican_win32.cpp" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    89
    <ClCompile Include="dllmain.cpp">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    90
      <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">false</CompileAsManaged>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    91
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    92
      </PrecompiledHeader>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    93
      <CompileAsManaged Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">false</CompileAsManaged>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    94
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    95
      </PrecompiledHeader>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    96
    </ClCompile>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    97
    <ClCompile Include="stdafx.cpp">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    98
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">Create</PrecompiledHeader>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
    99
      <PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">Create</PrecompiledHeader>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
   100
    </ClCompile>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
   101
  </ItemGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
   102
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
   103
  <ImportGroup Label="ExtensionTargets">
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
   104
  </ImportGroup>
b9274b595650 CosateQ contribution.
edouard
parents:
diff changeset
   105
</Project>