Граф коммитов

43 Коммитов

Автор SHA1 Сообщение Дата
Matt Durak 78b5281143
Add real_threadpool_thandle for convenience in UTs (#405)
* Add real_threadpool_thandle for convenience in UTs
2024-11-04 09:54:16 -08:00
Bert Kleewein e1df027dc1
add reals for job_object_helper (#402)
* add reals for job_object_helper

* add stdint
2024-10-26 20:27:36 -07:00
anporumb 752bec6839
fixes for EBS repo and remove c_pal_interfacesmocks (#391)
* c_pal_umocktypes should link with c_pal_reals

* no need to build a mock library for c_pal_interface

* take out pal_ll_interfaces_mocks

* make call_once_ut compile

* better reals for async_socket

* added (void) to void functions

* add real socjket transport / socket for win32

* added reals for sokcet transport on linux

* async socket uses socket transport

* added real async socket for linux

* socket_transport has unbalanced } in C++ lands

* reals changes

* windows compiles now

* better but still doesn't compile on linux

* now it all compiles

* added stdint.h after CR
2024-10-18 11:41:44 -07:00
anporumb cf83dc4ed7
use correct include path and no double reals (#385)
* use the correct include path

* propagate_all_repos anporumb/pchmock3

* no double include

* why CMAKE, WHY
2024-10-11 11:41:50 -07:00
anporumb 0fee3af5d5
add the smallest precompiled header and use it in 1x project. (#384)
* meek attempt to have a mocks library with precompiled header

* this creates by hand win32_ll_mocks and uses it in call_once_ut_exe_c_pal

* mock loibrary for c_pal_interfaces is build with a function

* propagate_all_repos anporumb/pchmock3

* itr also compiles but does NOT link on linux

* now it builds AND links on LINUX

* added a minimal explanation about exiting visual studio

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* threadpool uses terminate_process

* make pal_ll_interfaces appear in Visual Studio

* it needs to be prefixed with inc

* extraneous files are removed

* write library name with capital letters

* use also for #ifdef

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* propagate_all_repos anporumb/pchmock3

* use latest dependencies 10 Oct 2024

* remove C_PAL_INC_FOLDER

* make it compile with latest c-pal

* use latest dependencies 10 Oct 2024

* remove garbage from build folder

* use latest dependencies 10 Oct 2024

* propagate_all_repos anporumb/pchmock3

* use latest dependencies 10 Oct 2024

* use latest dependencies 10 Oct 2024
2024-10-11 10:26:22 -07:00
Jelani Brandon e8692afe7d
fix missing include in real file (#383)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2024-10-09 21:03:33 -07:00
Nishikant Deshmukh 71e315817c
Threadpool WIN32 changes implementation (#371)
* Threadpool WIN32 changes implementation

* Fixed few unit-tests and memory leaks
2024-09-19 14:52:53 -07:00
Nishikant Deshmukh 8c1dd06fb3
Initial checkin with specs (#362)
* Initial checkin with specs

* Fixed Traceability

* Fixed PVOID on Linux

* Fixed PVOID in threadpool.h

* Forgot to add threadpool.h into the commit, adding it now

* Addressed comments by Matt

* Addressed ALL comments by Matt
2024-09-03 17:35:36 -07:00
anporumb 1d6d29a682
make logging context thandlable (#337)
* before making reals for thandle_logging_context

* it doesn't compile

* update thandle_ll to expose types of functions

* with reals

* iwyu take 01 out of 99

* iwyu take 02 out of 99

* iwyu take 03 out of 99

* iwyu take 04 out of 99

* iwyu take 05 out of 99

* iwyu take 06 out of 99

* iwyu take 07 out of 99

* iwyu take 08 out of 99

* iwyu take 09 out of 99

* rename test name to something better
2024-05-14 11:22:43 -07:00
anporumb 7fe6b681f5
TIMER_GUARD rename to real_TIMER_GUARD (#330)
* TIMER_GUARD rename to real_TIMER_GUARD

* #define TIMER_GUARD                     real_TIMER_GUARD for linux too
2024-04-23 20:11:09 +00:00
anporumb b2aebe0ac5
Anpo fix execution engine reals (#311)
* fix execution engine reals

* added also tests for execution engine, becuse those were missing
2024-03-05 22:09:25 -08:00
David Robson 47ee6cc488
Add real_thandle_helper.h and real_interlocked_undo_rename.h to c-pal… (#308)
* Add real_thandle_helper.h and real_interlocked_undo_rename.h to c-pal repo.
Add a document and unit test to show how to use.

---------

Co-authored-by: Matt Durak <mdurak@microsoft.com>
2024-03-01 18:02:41 +00:00
Parth Aggarwal f50f93a220
use real_interlocked in real_threadpool (#301) 2024-02-05 08:37:37 -08:00
Jelani Brandon 45ab80518e
adding function to determine if a uuid is NIL. (#299)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2024-01-30 06:00:45 +00:00
anporumb bdcd1ad58e
Anpo 06 oct 2023 update deps (#276)
* use latest dependencies 06 Oct 2023

* remove mymalloc
2023-10-06 15:15:40 -07:00
Dan Cristoloveanu e89ca804d3
Fix reals for win32 for async_socket (#275) 2023-10-06 13:18:16 -07:00
Raj Vengalil 777418ccd4
Add async socket notify (#270)
Add a new `async_socket_notify_io` API that can be used by callers to be notified when the underlying socket is ready to be written to or read from.
2023-10-03 13:38:10 +05:30
Dan Cristoloveanu 70f74b15e7
Add reals for srw lock ll (#266)
* Add real_srw_lock_ll

* reals UT update

* Add reals for srw_lock_ll

* Add mock return value for srw_lock_ll_init
2023-09-06 10:36:52 -07:00
anporumb 92a73e5794
win32reals needs to link with rpcrt4 (#238) 2023-05-18 11:26:32 -07:00
Jelani Brandon b7a0801bfd
Threadpool THANDLE-ifyed (#233)
* chore: moving threadpool_open_async to threadpool_open

---------

Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2023-04-13 14:43:02 -07:00
Bingyi Yang 0c8ac64304
move sm and its dependencies from c-util to c-pal (#207)
* move sm and its dependencies from c-util to c-pal

* fix iwyu

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* fix some compile errors

* move sync and interlock into a new lower level c-pal

* fix linux build error

* fix win cmake build error

* changes with comments

* fix linux build error

* merge
2023-01-29 00:07:45 -08:00
Jelani Brandon 6a9b28f301
chore: adding s_list reals (#191)
Co-authored-by: Jelani Brandon <jebrando@microsoft.com>
2022-12-12 15:29:06 -08:00
anporumb 4ea501b566
more renames for threadpool (#183) 2022-12-01 15:22:08 -08:00
anporumb 8064ad3272
add some needed reals upstream (#181)
* async_socket has reals part 1

* async_socket part 2

* async_socket part 3

* maybe thraedpool

* maybe threadpool 2

* execution engine part 1

* execution engine part 2

* execution_engine_win32 maybe

* execution_engine_win32 maybe 2

* execution_engine_win32 maybe 3
2022-11-30 11:06:44 -08:00
anporumb 1d25f96a06
have inverse conversion from UUID_T to GUID (#143) 2022-01-14 13:30:33 -08:00
anporumb 67b993b0cb
or else it is doubly defined (#141) 2022-01-10 18:26:59 -08:00
anporumb abd708fa4d
have unique UUID (#138)
* works on windows

* all tests pass on Linux/Win32

* with requirements

* with YWYU

* more include

* now iwndows maybe compiles

* added GUID to UUID_T conversion

* added chapter for windows

* fix horrible ciopy paste

* added PRI_GUID and tests for it

* more tests/documents

* why not have umock_types where the type is declared?

* include what you use should stop complaining

* while I am here, remove real_malloc

* free => real_Free

* after CR
2022-01-10 11:11:12 -08:00
anporumb 27107e1f2f
have some x64 mutiply thingies (#111)
* have 64x64=128 bit multiplication
2021-10-20 15:03:16 -07:00
anporumb 054ff62857
gballoc hl win32 (#112)
* hl with _2 / _flex
2021-10-14 15:08:52 -07:00
Matt Durak b5c3edbb01
Helper for refcount reals (#100)
* Add a real_refcount to use refcount types in tests without mocked interlocked calls

* Fix interlocked includes

* Re-enable real_refcount
2021-09-27 17:46:54 -07:00
Dan Cristoloveanu facd0b8bda
Bump cmake version (#73)
* Update dependencies

* Bump cmake version
2021-01-27 21:57:04 -08:00
Matt Durak e249a5363d
Module for popen/pclose (#67)
* Adding pipe module for popen/pclose needs int tests
2021-01-21 18:52:27 -08:00
Dan Cristoloveanu c609aabc78
Add includecheck leg with iwyu (#68)
* Use umock with exported macro_utils.h

* Fix includes

* Add includecheck leg
2021-01-21 12:40:46 -08:00
anporumb 964df11c83
restart uses latest deps (#51)
* git rm old repos

* removed rogue azure-c-logging

* now uses latest renamed modules

* umock too - latest and greatest

* renamed azure_c_pal to c_pal

* remove remnants of azure-c_c
2020-10-30 14:17:47 -07:00
Dan Cristoloveanu f6649ec50d
Add timer_linux (#48) 2020-10-27 19:17:51 -07:00
Dan Cristoloveanu ada6c0482a Remove interlocked_hl 2020-10-07 09:30:02 -07:00
Dan Cristoloveanu 85db3bdfe8 Make it build with unit tests 2020-08-18 10:37:35 -07:00
Dan Cristoloveanu 0d61b3e234 Made it build 2020-08-18 10:37:35 -07:00
anporumb 667da67912
gballoc hl metrics uses lazy init (#31)
* hl_metrics uses lazy_init
2020-08-07 10:40:48 -07:00
anporumb 905e820bc1
gballoc hl passthrough uses lazy init (#30)
* gballoc_hl uses lazy_init

* fix reals

* gballoc_hl_passthrough patch for linux
2020-08-06 16:56:20 -07:00
anporumb 5f7404b8d9
have call once/lazy_init/SetAndWakeAll (#28)
* have interlockedhl_setandwakeall and call_once

* have lazy_init

*have sync_real
2020-08-06 07:15:02 -07:00
anporumb ed802bec24
gballoc and strings exist for linux (#24) 2020-07-30 16:09:37 -07:00
anporumb e49942231b
propagate gballoc_hl (#21)
removed gballoc.h and uses gballoc_hl/ll from now on
string utils is in a better shape mocking wise.
2020-07-30 10:06:16 -07:00