Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ ${hasBase ? `open class ${name.HybridTSpecCxx} : ${baseClasses.join(', ')}` : `o
*/
public func getCxxPart() -> bridge.${bridge.specializationName} {
let cachedCxxPart = self.__cxxPart.lock()
if Bool(fromCxx: cachedCxxPart) {
if cachedCxxPart.use_count() > 0 {
return cachedCxxPart
} else {
let newCxxPart = bridge.${bridge.funcName}(self.toUnsafe())
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ open class HybridBaseSpec_cxx {
*/
public func getCxxPart() -> bridge.std__shared_ptr_HybridBaseSpec_ {
let cachedCxxPart = self.__cxxPart.lock()
if Bool(fromCxx: cachedCxxPart) {
if cachedCxxPart.use_count() > 0 {
return cachedCxxPart
} else {
let newCxxPart = bridge.create_std__shared_ptr_HybridBaseSpec_(self.toUnsafe())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ open class HybridChildSpec_cxx : HybridBaseSpec_cxx {
*/
public func getCxxPart() -> bridge.std__shared_ptr_HybridChildSpec_ {
let cachedCxxPart = self.__cxxPart.lock()
if Bool(fromCxx: cachedCxxPart) {
if cachedCxxPart.use_count() > 0 {
return cachedCxxPart
} else {
let newCxxPart = bridge.create_std__shared_ptr_HybridChildSpec_(self.toUnsafe())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ open class HybridPlatformObjectSpec_cxx {
*/
public func getCxxPart() -> bridge.std__shared_ptr_HybridPlatformObjectSpec_ {
let cachedCxxPart = self.__cxxPart.lock()
if Bool(fromCxx: cachedCxxPart) {
if cachedCxxPart.use_count() > 0 {
return cachedCxxPart
} else {
let newCxxPart = bridge.create_std__shared_ptr_HybridPlatformObjectSpec_(self.toUnsafe())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ open class HybridRecyclableTestViewSpec_cxx {
*/
public func getCxxPart() -> bridge.std__shared_ptr_HybridRecyclableTestViewSpec_ {
let cachedCxxPart = self.__cxxPart.lock()
if Bool(fromCxx: cachedCxxPart) {
if cachedCxxPart.use_count() > 0 {
return cachedCxxPart
} else {
let newCxxPart = bridge.create_std__shared_ptr_HybridRecyclableTestViewSpec_(self.toUnsafe())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ open class HybridTestObjectSwiftKotlinSpec_cxx {
*/
public func getCxxPart() -> bridge.std__shared_ptr_HybridTestObjectSwiftKotlinSpec_ {
let cachedCxxPart = self.__cxxPart.lock()
if Bool(fromCxx: cachedCxxPart) {
if cachedCxxPart.use_count() > 0 {
return cachedCxxPart
} else {
let newCxxPart = bridge.create_std__shared_ptr_HybridTestObjectSwiftKotlinSpec_(self.toUnsafe())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ open class HybridTestViewSpec_cxx {
*/
public func getCxxPart() -> bridge.std__shared_ptr_HybridTestViewSpec_ {
let cachedCxxPart = self.__cxxPart.lock()
if Bool(fromCxx: cachedCxxPart) {
if cachedCxxPart.use_count() > 0 {
return cachedCxxPart
} else {
let newCxxPart = bridge.create_std__shared_ptr_HybridTestViewSpec_(self.toUnsafe())
Expand Down
Loading