1 17 18 package org.apache.tomcat.jni; 19 20 import java.nio.ByteBuffer ; 21 22 27 28 public class Shm { 29 30 55 public static native long create(long reqsize, String filename, long pool) 56 throws Error ; 57 58 68 public static native int remove(String filename, long pool); 69 70 74 public static native int destroy(long m); 75 76 85 public static native long attach(String filename, long pool) 86 throws Error ; 87 88 93 public static native int detach(long m); 94 95 104 public static native long baseaddr(long m); 105 106 111 public static native long size(long m); 112 113 122 public static native ByteBuffer buffer(long m); 123 124 } 125 | Popular Tags |