Package windows.kernel32

Examples of windows.kernel32.CRITICAL_SECTION


public class CriticalSectionTest {

  @Test
  public void testCS() {
    try {
      CRITICAL_SECTION cs = new CRITICAL_SECTION();
      InitializeCriticalSection(pointerTo(cs));
      EnterCriticalSection(pointerTo(cs));
      System.out.println(cs.OwningThread().getPeer());
     
      LeaveCriticalSection(pointerTo(cs));
      DeleteCriticalSection(pointerTo(cs));
    } catch(Exception e) {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of windows.kernel32.CRITICAL_SECTION

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.