上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页
摘要: https://learnopengl-cn.github.io/ 阅读全文
posted @ 2021-07-12 17:03 一拳超人的逆袭 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 头文件 #include <QOpenGLWidget> #include <QOpenGLExtraFunctions> #include <QOpenGLFunctions_3_3_Core> #include <QOpenGLShader> #include <QOpenGLShaderPro 阅读全文
posted @ 2021-07-12 15:14 一拳超人的逆袭 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 顶点着色器 #version 330 core layout (location = 0) in vec3 aPos; layout (location = 1) in vec3 aColor; layout (location = 2) in vec2 aTexCoord; out vec3 ou 阅读全文
posted @ 2021-07-12 11:10 一拳超人的逆袭 阅读(73) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/jangboyang222/article/details/113835085?ops_request_misc=&request_id=&biz_id=102&utm_term=vmware%2016%E5%AE%89%E8%A3%85linux%20c 阅读全文
posted @ 2021-07-11 19:45 一拳超人的逆袭 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 包括synchronized和ReetrantLock 可重入就是说某个线程已经获得某个锁,可以再次获取锁而不会出现死锁 synchronized版本 public class demo1 { public static void main(String[] args) { Phone phone= 阅读全文
posted @ 2021-07-11 14:15 一拳超人的逆袭 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 之前的++函数 解决方法 原子引用 Integer包装类的坑 关于对象引用坑的测试 public class test { public static void main(String[] args) { Integer integer = Integer.valueOf(1100); Intege 阅读全文
posted @ 2021-07-10 17:57 一拳超人的逆袭 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1.饿汉式 public class Hungry { //如果有很多占内存的数据的话 饿汉式存在浪费内存的问题,因为一上来就把所有的内存加载完毕了 private byte[] data1=new byte[1024*1024]; //私有化构造器 private Hungry(){ } priv 阅读全文
posted @ 2021-07-10 17:02 一拳超人的逆袭 阅读(27) 评论(0) 推荐(0) 编辑
摘要: /** * @author wuyimin * @create 2021-07-10-14:37 * @description * 异步执行,成功回调,失败回调 */ public class demo01 { //今天才发现如果不是静态函数在java类内部的主函数是不能直接调用的 public s 阅读全文
posted @ 2021-07-10 16:08 一拳超人的逆袭 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 1.大任务化成小任务 2.工作窃取(一个线程已经结束了就去偷其他线程的任务做) 测试类 public class Test { public static void main(String[] args) throws ExecutionException, InterruptedException 阅读全文
posted @ 2021-07-09 21:24 一拳超人的逆袭 阅读(41) 评论(0) 推荐(0) 编辑
摘要: vert #version 330 core layout (location = 0) in vec3 aPos; layout (location = 1) in vec3 aColor; layout (location = 2) in vec2 aTexCoord; out vec3 our 阅读全文
posted @ 2021-07-09 17:10 一拳超人的逆袭 阅读(48) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 20 下一页