Skip to content

Commit a8bfecc

Browse files
docs: Added README."en".md translation via https://github.com/dephraiim/translate-readme
1 parent ee4419b commit a8bfecc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.en.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
## Code structure
77

88
1. [Algorithm](/Algorithm/)
9-
1. [Search](/Algorithm/Search/search.hpp)——Implementation of various search algorithms, as well as unit testing and performance testing based on Google benchmark;
9+
1. [Search](/Algorithm/Search/search.hpp)——各种查找算法的实现,以及单元测试和基于google benchmark的性能测试;
1010
1. [std_search_examples](/Algorithm/Search/std_search_examples.cc)——Examples of search algorithms in stl;
1111
2. [Sort](/Algorithm/Sort/sort.hpp)——Implementation of various sorting algorithms, as well as unit testing and performance testing based on Google benchmark;
1212
1. [std_sort_examples](/Algorithm/Sort/std_sort_examples.cc)——Examples of sorting algorithms in stl;
@@ -25,14 +25,14 @@
2525
14. [MVC](/DesignPattern/MVC/model.hpp)——mvc mode;
2626
15. [Observer](/DesignPattern/Observer/observer.hpp)——Observer mode;
2727
16. [Singleton](/DesignPattern/Singleton/singleton.hpp)——Single case mode;
28-
17. [GlobMatch](/GlobMatch/globmatcher.hpp)——glob模式匹配的简单实现;
28+
17. [GlobMatch](/GlobMatch/globmatcher.hpp)——Simple implementation of glob pattern matching;
2929
18. [Hawthorn](/Glog/main.cc)——Google glog example;
3030
19. [Icmp](/Icmp/icmp.hpp)——Simple encapsulation of linux icmp protocol;
3131
20. [LinkedList](/LinkedList/linkedlist.hpp)——Related operations of linked lists, including insertion, removal, reversal, and printing;
3232
21. [Memcpy](/Memcpy/memcpy.hpp)——`memcpy`function implementation;
33-
22. [MonitorDir](/MonitorDir/monitordir.hpp)——windows(`ReadDirectoryChangesW`),macos(`FSEvents`) and linux(`fanotify``inotify`) Simple example of directory monitoring;
33+
22. [MonitorDir](/MonitorDir/monitordir.hpp)——windows(`ReadDirectoryChangesW`),macos(`FSEvents`) and linux(`fanotify`and`inotify`) Simple example of directory monitoring;
3434
1. `fanotify`used in`global`mode, in`fanotify_mark`Join in`FAN_MARK_FILESYSTEM`(need`CAP_SYS_ADMIN`ability, that is, root permissions) this`flag`, all events on the specified file system will be monitored, and then the required events can be filtered according to the specified monitored folder directory. This function is better than`inotify`more powerful;
35-
1. To obtain the upper-level path where the event file is located, use`open_by_handle_at`This method will appear under ordinary users`Operation not permitted`Error, also needed`CAP_SYS_ADMIN`Ability, i.e. root authority;
35+
1. To obtain the upper-level path where the event file is located, use`open_by_handle_at`This method will appear under ordinary users`Operation not permitted`Error, also needed`CAP_SYS_ADMIN`Ability, that is, root authority;
3636
2. It is recommended to run with root privileges. If you must run it under an ordinary user, it is still recommended to use`inotify`instead of`fanotify`, anyway, opening a monitoring file descriptor (`fd`), it is impossible to achieve`subtree`monitor;
3737
23. [MonitorDir_EFSW](/MonitorDir_EFSW/main.cc)——A simple example of directory monitoring using efsw;
3838
24. [Mutex](/Mutex/mutex.hpp)——Simple mutex lock and spin lock implemented using std::atomic_flag;
@@ -46,10 +46,11 @@
4646
7. [sm4](/OpenSSL/openssl_sm4.cc)——Examples of sm4 encryption and decryption;
4747
8. [Kskh09](/OpenSSL/openssl_x509.cc)——Example of x509 certificate;
4848
9. [bash](/OpenSSL/openssl_bash.sh)——openssl command line example;
49-
26. [Server](/Server)——Some examples of linux server;
49+
26. [SafeCallback](/SafeCallback/safecallback.hpp)——Implementation of life cycle safe callback function, reference[muduo WeakCallback](https://github.com/chenshuo/muduo/blob/cpp17/muduo/base/WeakCallback.h)
50+
27. [Server](/Server)——Some examples of linux server;
5051
1. [server_epoll](/Server/server_epoll.cc)——epoll example;
5152
2. [server_poll](/Server/server_poll.cc)——Poll example;
5253
3. [server_select](/Server/server_select.cc)——Example of select;
53-
27. [Thread](/Thread/)——Thread class implemented based on std::thread, including thread pool;
54+
28. [Thread](/Thread/)——Thread class implemented based on std::thread, including thread pool;
5455
1. [Thread](/Thread/thread.hpp)——Thread class;
5556
2. [ThreadPool](/Thread/threadpool.hpp)——Thread pool;

0 commit comments

Comments
 (0)