上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 164 下一页

2021年8月10日

摘要: static void dm9000_rx(struct net_device *dev) { board_info_t *db = netdev_priv(dev); struct dm9000_rxhdr rxhdr; /* 该结构体按照DM9000的接收格式封装了dm9000接收的数据包信息 阅读全文
posted @ 2021-08-10 16:47 tycoon3 阅读(259) 评论(0) 推荐(0)
摘要: root@ubuntu:~/kubernetes-operator# source ~/kata/go_source root@ubuntu:~/kubernetes-operator# make images mkdir -p output GO111MODULE=on GOPROXY=https 阅读全文
posted @ 2021-08-10 12:10 tycoon3 阅读(182) 评论(0) 推荐(0)

2021年8月6日

摘要: OpenResty 处理一个请求,它的处理流程请参考下图(从 Request start 开始): 我们在这里做个测试,示例代码如下: [root@centos7 work]# cat conf/nginx.conf worker_processes 1; pid logs/nginx.pid; e 阅读全文
posted @ 2021-08-06 16:13 tycoon3 阅读(824) 评论(0) 推荐(0)

2021年8月5日

摘要: error: src refspec main does not match any. git branch -M main root@ubuntu:~/rtems-_app# git push -u origin main -f error: src refspec main does not m 阅读全文
posted @ 2021-08-05 16:08 tycoon3 阅读(177) 评论(0) 推荐(0)
摘要: NGINX Plus Ingress Controller介绍 NGINX Ingress Controller是NGINX公司开发的可用于k8s充当Ingress Controller的产品,有NGINX和NGINX Plus两个版本。NGINX是开源免费版,而NGINX Plus是商业版本。 N 阅读全文
posted @ 2021-08-05 15:56 tycoon3 阅读(813) 评论(0) 推荐(0)
摘要: [root@centos7 nginx_ingress]# ps -elf | grep ingress-nginx-controller 4 S 101 101984 101964 0 80 0 - 8 SyS_rt 02:36 ? 00:00:00 /usr/bin/dumb-init -- / 阅读全文
posted @ 2021-08-05 15:17 tycoon3 阅读(231) 评论(0) 推荐(0)
摘要: [root@localhost satimis]# chroot "$LFS" /tools/bin/env -i \ > HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \ > PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin 阅读全文
posted @ 2021-08-05 11:55 tycoon3 阅读(104) 评论(0) 推荐(0)

2021年8月4日

摘要: root@ubuntu:~/nginx_ingress# kubectl get pods -n default NAME READY STATUS RESTARTS AGE busybox 1/1 Running 140 5d20h example-foo-54dc4db9fc-42jz6 1/1 阅读全文
posted @ 2021-08-04 11:12 tycoon3 阅读(443) 评论(0) 推荐(0)

2021年8月3日

摘要: 互斥锁std::mutex是一种最常见的线程间同步的手段,但是在有些情况下不太高效。 假设想实现一个简单的消费者生产者模型,一个线程往队列中放入数据,一个线程往队列中取数据,取数据前需要判断一下队列中确实有数据,由于这个队列是线程间共享的,所以,需要使用互斥锁进行保护,一个线程在往队列添加数据的时候 阅读全文
posted @ 2021-08-03 18:05 tycoon3 阅读(187) 评论(0) 推荐(0)
摘要: /* *lock_guard C++源码 内容也比较简单 *私有化了拷贝构造和赋值拷贝 *在内部对锁和构造和析构进行了适配 */ template<class _Mutex> class lock_guard<_Mutex> { // specialization for a single mute 阅读全文
posted @ 2021-08-03 16:43 tycoon3 阅读(93) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 164 下一页

导航